From: Stéphane Wirtel Date: Mon, 18 Mar 2019 16:10:29 +0000 (+0100) Subject: bpo-36328: Fix compiler warning in Py_NewInterpreter() (GH-12381) X-Git-Tag: v3.8.0a3~72 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e06d2b865beb62e54a4da39eb191f9fb8385282;p=python bpo-36328: Fix compiler warning in Py_NewInterpreter() (GH-12381) --- diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index c2d431c912..49a2f18e49 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);