From 81eda9bb7baa3e7199e1c715e5ca7441c461cafc Mon Sep 17 00:00:00 2001 From: Eric Snow Date: Tue, 8 Mar 2022 14:58:56 -0700 Subject: [PATCH] Explicitly initialize the isolated config. --- Modules/_xxsubinterpretersmodule.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Modules/_xxsubinterpretersmodule.c b/Modules/_xxsubinterpretersmodule.c index 3287e7c9febb0c..82a5704fb1372f 100644 --- a/Modules/_xxsubinterpretersmodule.c +++ b/Modules/_xxsubinterpretersmodule.c @@ -2001,7 +2001,8 @@ interp_create(PyObject *self, PyObject *args, PyObject *kwds) return NULL; } - const _PyInterpreterConfig config; // isolated by default + // The struct is isolated by default. + const _PyInterpreterConfig config = (const _PyInterpreterConfig){}; // Create and initialize the new interpreter. PyThreadState *save_tstate = _PyThreadState_GET();