From a8d69fe92c65d636fc454cfb1825c357eb2e6325 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Mon, 12 Jun 2023 11:47:56 +0300 Subject: gh-105673: Fix uninitialized warning in sysmodule.c (#105674) In sys_add_xoption(), 'value' may be uninitialized for some error paths. --- Python/sysmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 90e5e65..f5d4711 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -3375,7 +3375,7 @@ err_occurred: 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) { -- cgit v0.12