]> granicus.if.org Git - python/commitdiff
bpo-36328: Fix compiler warning in Py_NewInterpreter() (GH-12381)
authorStéphane Wirtel <stephane@wirtel.be>
Mon, 18 Mar 2019 16:10:29 +0000 (17:10 +0100)
committerVictor Stinner <vstinner@redhat.com>
Mon, 18 Mar 2019 16:10:29 +0000 (17:10 +0100)
Python/pylifecycle.c

index c2d431c912b71e1448ffe3947dd6c9933d3156e4..49a2f18e49fa1dc2d81cbf6ab4f43125d35d528b 100644 (file)
@@ -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);