Skip to content

Commit 3f29756

Browse files
Explicitly initialize the isolated config.
1 parent e1dfb0f commit 3f29756

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
@@ -2020,7 +2020,8 @@ interp_create(PyObject *self, PyObject *args, PyObject *kwds)
20202020
return NULL;
20212021
}
20222022

2023-
const _PyInterpreterConfig config; // isolated by default
2023+
// The struct is isolated by default.
2024+
const _PyInterpreterConfig config = (const _PyInterpreterConfig){};
20242025

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

0 commit comments

Comments
 (0)