From 36f2329367f3608d15562f1c9e89c50a1bd07b0b Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Mon, 9 Jan 2023 18:51:24 +0300 Subject: [PATCH] =?UTF-8?q?gh-100873:=20Fix=20"=E2=80=98lo=E2=80=99=20may?= =?UTF-8?q?=20be=20used=20uninitialized=20in=20this=20function"=20warning?= =?UTF-8?q?=20in=20`mathmodule.c`=20(#100881)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Modules/mathmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c index 9e4c6fded93..1342162fa74 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)