[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:
Miss Islington (bot) 2023-06-12 02:13:03 -07:00 committed by GitHub
parent e5fe017143
commit 171aa086f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {