https://github.com/python/cpython/commit/ffac6ac656f5ba591cddc88c990c2187a4d9a83d
commit: ffac6ac656f5ba591cddc88c990c2187a4d9a83d
branch: 3.12
author: Miss Islington (bot) <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2024-01-19T10:58:09Z
summary:

[3.12] gh-114286: Fix `maybe-uninitialized` warning in `Modules/_io/fileio.c` 
(GH-114287) (GH-114288)

(cherry picked from commit 05e47202a34e6ae05e699af1083455f5b8b59496)

Co-authored-by: Nikita Sobolev <[email protected]>

files:
M Modules/_io/fileio.c

diff --git a/Modules/_io/fileio.c b/Modules/_io/fileio.c
index c8be9982890b97..bab68077a2144a 100644
--- a/Modules/_io/fileio.c
+++ b/Modules/_io/fileio.c
@@ -153,7 +153,7 @@ _io_FileIO_close_impl(fileio *self, PyTypeObject *cls)
         return res;
     }
 
-    PyObject *exc;
+    PyObject *exc = NULL;
     if (res == NULL) {
         exc = PyErr_GetRaisedException();
     }

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to