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

Skip to content

Commit ef32a01

Browse files
sobolevnmiss-islington
authored andcommitted
pythongh-105673: Fix uninitialized warning in sysmodule.c (pythonGH-105674)
In sys_add_xoption(), 'value' may be uninitialized for some error paths. (cherry picked from commit a8d69fe) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
1 parent d310fc7 commit ef32a01

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
@@ -3371,7 +3371,7 @@ _PySys_InitCore(PyThreadState *tstate, PyObject *sysdict)
33713371
static int
33723372
sys_add_xoption(PyObject *opts, const wchar_t *s)
33733373
{
3374-
PyObject *name, *value;
3374+
PyObject *name, *value = NULL;
33753375

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

0 commit comments

Comments
 (0)
0