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

(cherry picked from commit 05e47202a3)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
This commit is contained in:
Miss Islington (bot) 2024-01-19 11:58:09 +01:00 committed by GitHub
parent f9158d63b1
commit ffac6ac656
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();
}