Skip to content

Commit

Permalink
gh-105673: Fix uninitialized warning in sysmodule.c (#105674)
Browse files Browse the repository at this point in the history
In sys_add_xoption(), 'value' may be uninitialized for some error paths.
  • Loading branch information
sobolevn authored Jun 12, 2023
1 parent 58f5227 commit a8d69fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/sysmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a8d69fe

Please sign in to comment.