diff options
author | 2023-01-09 18:51:24 +0300 | |
---|---|---|
committer | 2023-01-09 21:21:24 +0530 | |
commit | 36f2329367f3608d15562f1c9e89c50a1bd07b0b (patch) | |
tree | a5710aeaec57c99167f1e5e00d2d636e7ee29971 | |
parent | GH-81061: Fix refcount issue when returning `None` from a `ctypes.py_object` ... (diff) | |
download | cpython-36f2329367f3608d15562f1c9e89c50a1bd07b0b.tar.gz cpython-36f2329367f3608d15562f1c9e89c50a1bd07b0b.tar.bz2 cpython-36f2329367f3608d15562f1c9e89c50a1bd07b0b.zip |
gh-100873: Fix "‘lo’ may be used uninitialized in this function" warning in `mathmodule.c` (#100881)
-rw-r--r-- | Modules/mathmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |