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

This commit is contained in:
Nikita Sobolev 2024-01-19 13:25:05 +03:00 committed by GitHub
parent a34e4db28a
commit 05e47202a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

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