diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2023-06-12 08:47:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-12 08:47:56 (GMT) |
commit | a8d69fe92c65d636fc454cfb1825c357eb2e6325 (patch) | |
tree | 7ac1a032ca1d87446c46943f19d0c1457d3ff6d0 /Python | |
parent | 58f5227d7cdff803609a0bda6882997b3a5ec4bf (diff) | |
download | cpython-a8d69fe92c65d636fc454cfb1825c357eb2e6325.zip cpython-a8d69fe92c65d636fc454cfb1825c357eb2e6325.tar.gz cpython-a8d69fe92c65d636fc454cfb1825c357eb2e6325.tar.bz2 |
gh-105673: Fix uninitialized warning in sysmodule.c (#105674)
In sys_add_xoption(), 'value' may be uninitialized for some error paths.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/sysmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 90e5e65..f5d4711 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -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) { |