mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
[3.12] gh-105673: Fix uninitialized warning in sysmodule.c (GH-105674) (#105675)
In sys_add_xoption(), 'value' may be uninitialized for some error paths.
(cherry picked from commit a8d69fe92c
)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
This commit is contained in:
parent
d310fc776e
commit
0b305e8d36
1 changed files with 1 additions and 1 deletions
|
@ -3371,7 +3371,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