Skip to content

Commit acac8c9

Browse files
sobolevnGlyphack
authored andcommitted
pythongh-114286: Fix maybe-uninitialized warning in Modules/_io/fileio.c (pythonGH-114287)
1 parent beb44b3 commit acac8c9

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
@@ -157,7 +157,7 @@ _io_FileIO_close_impl(fileio *self, PyTypeObject *cls)
157157
return res;
158158
}
159159

160-
PyObject *exc;
160+
PyObject *exc = NULL;
161161
if (res == NULL) {
162162
exc = PyErr_GetRaisedException();
163163
}

0 commit comments

Comments
 (0)