[3.13] gh-121925: Fix uninitialized variables in `main.c` (GH-121926) (#121931)

gh-121925: Fix uninitialized variables in `main.c` (GH-121926)
(cherry picked from commit f4bc84d261)

Co-authored-by: sobolevn <mail@sobolevn.me>
This commit is contained in:
Miss Islington (bot) 2024-07-17 19:00:42 +02:00 committed by GitHub
parent 91e098f44d
commit 449529a8c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 2 deletions

View File

@ -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();