mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
[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:
parent
f9158d63b1
commit
ffac6ac656
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue