mirror of https://github.com/python/cpython
gh-105673: Fix uninitialized warning in sysmodule.c (#105674)
In sys_add_xoption(), 'value' may be uninitialized for some error paths.
This commit is contained in:
parent
58f5227d7c
commit
a8d69fe92c
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue