8000 [3.11] gh-105673: Fix uninitialized warning in sysmodule.c (GH-105674… · python/cpython@171aa08 · GitHub
[go: up one dir, main page]

Skip to content

Commit 171aa08

Browse files
[3.11] gh-105673: Fix uninitialized warning in sysmodule.c (GH-105674) (#105676)
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 e5fe017 commit 171aa08

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
@@ -3020,7 +3020,7 @@ _PySys_InitCore(PyThreadState *tstate, PyObject *sysdict)
30203020
static int
30213021
sys_add_xoption(PyObject *opts, const wchar_t *s)
30223022
{
3023-
PyObject *name, *value;
3023+
PyObject *name, *value = NULL;
30243024

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

0 commit comments

Comments
 (0)
0