mirror of
https://github.com/python/cpython.git
synced 2025-07-23 19:25:40 +00:00
[3.11] gh-105673: Fix uninitialized warning in sysmodule.c (GH-105674) (#105676)
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
e5fe017143
commit
171aa086f2
1 changed files with 1 additions and 1 deletions
|
@ -3020,7 +3020,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