From 5ec5d8487241b1f5e999fadce46e97ab0fe3bc73 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Mon, 12 Jun 2023 11:19:09 +0300 Subject: [PATCH] =?UTF-8?q?gh-105673:=20Fix=20`=E2=80=98value=E2=80=99=20m?= =?UTF-8?q?ay=20be=20used=20uninitialized=20in=20this=20function`=20warnin?= =?UTF-8?q?g=20in=20`sysmodule.c`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Python/sysmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 90e5e65dcf9f8d..f5d4711b0c2c92 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -3375,7 +3375,7 @@ _PySys_InitCore(PyThreadState *tstate, PyObject *sysdict) static int sys_add_xoption(PyObject *opts, const wchar_t *s) { - PyObject *name, *value; + PyObject *name, *value = NULL; const wchar_t *name_end = wcschr(s, L'='); if (!name_end) {