https://github.com/python/cpython/commit/f4bc84d261c828ed81f137f2a48fa2f0de7a0211
commit: f4bc84d261c828ed81f137f2a48fa2f0de7a0211
branch: main
author: sobolevn <[email protected]>
committer: Yhg1s <[email protected]>
date: 2024-07-17T16:13:37Z
summary:
gh-121925: Fix uninitialized variables in `main.c` (#121926)
files:
M Modules/main.c
diff --git a/Modules/main.c b/Modules/main.c
index bd77558ea6412f..3c202c85c76dcc 100644
--- a/Modules/main.c
+++ b/Modules/main.c
@@ -264,8 +264,12 @@ static int
pymain_start_pyrepl_no_main(void)
{
int res = 0;
- PyObject *pyrepl, *console, *empty_tuple, *kwargs, *console_result;
- pyrepl = PyImport_ImportModule("_pyrepl.main");
+ PyObject *console = NULL;
+ PyObject *empty_tuple = NULL;
+ PyObject *kwargs = NULL;
+ PyObject *console_result = NULL;
+
+ PyObject *pyrepl = PyImport_ImportModule("_pyrepl.main");
if (pyrepl == NULL) {
fprintf(stderr, "Could not import _pyrepl.main\n");
res = pymain_exit_err_print();
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]