Skip to content

Commit 05e4720

Browse files
authored
gh-114286: Fix maybe-uninitialized warning in Modules/_io/fileio.c (GH-114287)
1 parent a34e4db commit 05e4720

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)