diff options
author | Benjamin Peterson <benjamin@python.org> | 2017-09-05 20:19:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-05 20:19:12 -0700 |
commit | b0a9a5a6a4786a6f8f0540e243427775d8ca245e (patch) | |
tree | 09bedca2ded5244ed7c1a0e7a726bcca9dba34da /Python/pylifecycle.c | |
parent | 76d5abc8684bac4f2fc7cccfe2cd940923357351 (diff) | |
download | cpython-git-b0a9a5a6a4786a6f8f0540e243427775d8ca245e.tar.gz |
correct initialization code (#3376)
Explicitly initialize struct members rather than relying on compiler extensions.
Diffstat (limited to 'Python/pylifecycle.c')
-rw-r--r-- | Python/pylifecycle.c | 2 |
1 files changed, 1 insertions, 1 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) |