Skip to content

Commit 81eda9b

Browse files
Explicitly initialize the isolated config.
1 parent d664496 commit 81eda9b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Modules/_xxsubinterpretersmodule.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2001,7 +2001,8 @@ interp_create(PyObject *self, PyObject *args, PyObject *kwds)
20012001
return NULL;
20022002
}
20032003

2004-
const _PyInterpreterConfig config; // isolated by default
2004+
// The struct is isolated by default.
2005+
const _PyInterpreterConfig config = (const _PyInterpreterConfig){};
20052006

20062007
// Create and initialize the new interpreter.
20072008
PyThreadState *save_tstate = _PyThreadState_GET();

0 commit comments

Comments
 (0)