Skip to content

Commit ffac6ac

Browse files
[3.12] gh-114286: Fix maybe-uninitialized warning in Modules/_io/fileio.c (GH-114287) (GH-114288)
(cherry picked from commit 05e4720) Co-authored-by: Nikita Sobolev <[email protected]>
1 parent f9158d6 commit ffac6ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_io/fileio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ _io_FileIO_close_impl(fileio *self, PyTypeObject *cls)
153153
return res;
154154
}
155155

156-
PyObject *exc;
156+
PyObject *exc = NULL;
157157
if (res == NULL) {
158158
exc = PyErr_GetRaisedException();
159159
}

0 commit comments

Comments
 (0)