From c93c00858a8b3acb317a816dc45625f7901282b6 Mon Sep 17 00:00:00 2001 From: Tian Gao Date: Sun, 26 Mar 2023 14:16:20 -0700 Subject: [PATCH] initialize stack variable sharedexception --- Modules/_xxsubinterpretersmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_xxsubinterpretersmodule.c b/Modules/_xxsubinterpretersmodule.c index 9648f080cd756c..3dfa99b20a1112 100644 --- a/Modules/_xxsubinterpretersmodule.c +++ b/Modules/_xxsubinterpretersmodule.c @@ -481,7 +481,7 @@ _run_script_in_interpreter(PyObject *mod, PyInterpreterState *interp, } // Run the script. - _sharedexception exc; + _sharedexception exc = no_exception; int result = _run_script(interp, codestr, shared, &exc); // Switch back.