8000 [3.12] gh-105673: Fix uninitialized warning in sysmodule.c (GH-105674) by miss-islington · Pull Request #105675 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.12] gh-105673: Fix uninitialized warning in sysmodule.c (GH-105674) #105675

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-105673: Fix uninitialized warning in sysmodule.c (GH-105674)
In sys_add_xoption(), 'value' may be uninitialized for some error paths.
(cherry picked from commit a8d69fe)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
  • Loading branch information
sobolevn authored and miss-islington committed Jun 12, 2023
commit ef32a01bb2132096773f9ad90064a6f7cc36d687
2 changes: 1 addition & 1 deletion Python/sysmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -3371,7 +3371,7 @@ _PySys_InitCore(PyThreadState *tstate, PyObject *sysdict)
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) {
Expand Down
0