8000 gh-105673: Fix uninitialized warning in sysmodule.c (#105674) · python/cpython@a8d69fe · GitHub
[go: up one dir, main page]

Skip to content

Commit a8d69fe

Browse files
authored
gh-105673: Fix uninitialized warning in sysmodule.c (#105674)
In sys_add_xoption(), 'value' may be uninitialized for some error paths.
1 parent 58f5227 commit a8d69fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/sysmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3375,7 +3375,7 @@ _PySys_InitCore(PyThreadState *tstate, PyObject *sysdict)
33753375
static int
33763376
sys_add_xoption(PyObject *opts, const wchar_t *s)
33773377
{
3378-
PyObject *name, *value;
3378+
PyObject *name, *value = NULL;
33793379

33803380
const wchar_t *name_end = wcschr(s, L'=');
33813381
if (!name_end) {

0 commit comments

Comments
 (0)
0