Skip to content

Commit 36f2329

Browse files
authored
gh-100873: Fix "‘lo’ may be used uninitialized in this function" warning in mathmodule.c (#100881)
1 parent 837ba05 commit 36f2329

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/mathmodule.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1467,7 +1467,7 @@ math_fsum(PyObject *module, PyObject *seq)
14671467
Py_ssize_t i, j, n = 0, m = NUM_PARTIALS;
14681468
double x, y, t, ps[NUM_PARTIALS], *p = ps;
14691469
double xsave, special_sum = 0.0, inf_sum = 0.0;
1470-
double hi, yr, lo;
1470+
double hi, yr, lo = 0.0;
14711471

14721472
iter = PyObject_GetIter(seq);
14731473
if (iter == NULL)

0 commit comments

Comments
 (0)