From ea6ab9b1ccef7f84d4c3e722e07b42ef26424e21 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Fri, 19 Jan 2024 13:25:05 +0300 Subject: [PATCH] gh-114286: Fix `maybe-uninitialized` warning in `Modules/_io/fileio.c` (GH-114287) (cherry picked from commit 05e47202a34e6ae05e699af1083455f5b8b59496) Co-authored-by: Nikita Sobolev --- 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 c8be9982890b97..bab68077a2144a 100644 --- a/Modules/_io/fileio.c +++ b/Modules/_io/fileio.c @@ -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(); }