mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue