Skip to content

Commit 9e06d2b

Browse files
matrixisevstinner
authored andcommitted
bpo-36328: Fix compiler warning in Py_NewInterpreter() (GH-12381)
1 parent 0c9258a commit 9e06d2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/pylifecycle.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1434,7 +1434,7 @@ new_interpreter(PyThreadState **tstate_p)
14341434
PyThreadState *
14351435
Py_NewInterpreter(void)
14361436
{
1437-
PyThreadState *tstate;
1437+
PyThreadState *tstate = NULL;
14381438
_PyInitError err = new_interpreter(&tstate);
14391439
if (_Py_INIT_FAILED(err)) {
14401440
_Py_ExitInitError(err);

0 commit comments

Comments
 (0)