mirror of https://github.com/python/cpython
gh-114286: Fix `maybe-uninitialized` warning in `Modules/_io/fileio.c` (GH-114287)
This commit is contained in:
parent
a34e4db28a
commit
05e47202a3
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue