https://github.com/python/cpython/commit/05e47202a34e6ae05e699af1083455f5b8b59496
commit: 05e47202a34e6ae05e699af1083455f5b8b59496
branch: main
author: Nikita Sobolev <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2024-01-19T10:25:05Z
summary:
gh-114286: Fix `maybe-uninitialized` warning in `Modules/_io/fileio.c`
(GH-114287)
files:
M Modules/_io/fileio.c
diff --git a/Modules/_io/fileio.c b/Modules/_io/fileio.c
index af4375c3640679..9cf268ca0b26c8 100644
--- a/Modules/_io/fileio.c
+++ b/Modules/_io/fileio.c
@@ -157,7 +157,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]