From 05e47202a34e6ae05e699af1083455f5b8b59496 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Fri, 19 Jan 2024 13:25:05 +0300 Subject: gh-114286: Fix `maybe-uninitialized` warning in `Modules/_io/fileio.c` (GH-114287) --- Modules/_io/fileio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_io/fileio.c b/Modules/_io/fileio.c index af4375c..9cf268c 100644 --- a/Modules/_io/fileio.c +++ b/Modules/_io/fileio.c @@ -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(); } -- cgit v0.12