diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2024-01-19 10:25:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-19 10:25:05 (GMT) |
commit | 05e47202a34e6ae05e699af1083455f5b8b59496 (patch) | |
tree | 90ae6fa917e3fa5e3b7c58884f7a8afbb1a75058 /Modules/_io/fileio.c | |
parent | a34e4db28a98904f6c9976675ed7121ed61edabe (diff) | |
download | cpython-05e47202a34e6ae05e699af1083455f5b8b59496.zip cpython-05e47202a34e6ae05e699af1083455f5b8b59496.tar.gz cpython-05e47202a34e6ae05e699af1083455f5b8b59496.tar.bz2 |
gh-114286: Fix `maybe-uninitialized` warning in `Modules/_io/fileio.c` (GH-114287)
Diffstat (limited to 'Modules/_io/fileio.c')
-rw-r--r-- | Modules/_io/fileio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_io/fileio.c b/Modules/_io/fileio.c index af4375c..9cf268c 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(); } |