From: Nikita Sobolev Date: Mon, 9 Jan 2023 15:51:24 +0000 (+0300) Subject: gh-100873: Fix "‘lo’ may be used uninitialized in this function" warning in `mathmodu... X-Git-Tag: v3.12.0a4~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=36f2329367f3608d15562f1c9e89c50a1bd07b0b;p=thirdparty%2FPython%2Fcpython.git gh-100873: Fix "‘lo’ may be used uninitialized in this function" warning in `mathmodule.c` (#100881) --- diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c index 9e4c6fded933..1342162fa74b 100644 --- a/Modules/mathmodule.c +++ b/Modules/mathmodule.c @@ -1467,7 +1467,7 @@ math_fsum(PyObject *module, PyObject *seq) Py_ssize_t i, j, n = 0, m = NUM_PARTIALS; double x, y, t, ps[NUM_PARTIALS], *p = ps; double xsave, special_sum = 0.0, inf_sum = 0.0; - double hi, yr, lo; + double hi, yr, lo = 0.0; iter = PyObject_GetIter(seq); if (iter == NULL)