Skip to content

Commit

Permalink
Explicitly initialize the isolated config.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericsnowcurrently committed Mar 8, 2022
1 parent e1dfb0f commit 3f29756
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Modules/_xxsubinterpretersmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -2020,7 +2020,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();
Expand Down

0 comments on commit 3f29756

Please sign in to comment.