diff options
Diffstat (limited to 'Python')
-rw-r--r-- | Python/pylifecycle.c | 2 | ||||
-rw-r--r-- | Python/pystate.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index f33e920e6b..3f405b1225 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -77,7 +77,7 @@ extern void _PyGILState_Init(PyInterpreterState *, PyThreadState *); extern void _PyGILState_Fini(void); #endif /* WITH_THREAD */ -_PyRuntimeState _PyRuntime = {}; +_PyRuntimeState _PyRuntime = {0, 0}; void _PyRuntime_Initialize(void) diff --git a/Python/pystate.c b/Python/pystate.c index 3d3207702f..2d926372fd 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); |