diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index c2d431c912b..49a2f18e49f 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -1434,7 +1434,7 @@ handle_error: PyThreadState * Py_NewInterpreter(void) { - PyThreadState *tstate; + PyThreadState *tstate = NULL; _PyInitError err = new_interpreter(&tstate); if (_Py_INIT_FAILED(err)) { _Py_ExitInitError(err);