mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
gh-114286: Fix maybe-uninitialized
warning in Modules/_io/fileio.c
(GH-114287)
This commit is contained in:
parent
a34e4db28a
commit
05e47202a3
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue