summaryrefslogtreecommitdiffstats
path: root/Python/pystate.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/pystate.c')
-rw-r--r--Python/pystate.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Python/pystate.c b/Python/pystate.c
index 3d32077..2d92637 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -37,8 +37,7 @@ extern "C" {
void
_PyRuntimeState_Init(_PyRuntimeState *runtime)
{
- _PyRuntimeState initial = {};
- *runtime = initial;
+ memset(runtime, 0, sizeof(*runtime));
_PyObject_Initialize(&runtime->obj);
_PyMem_Initialize(&runtime->mem);