mirror of
https://github.com/python/cpython.git
synced 2025-10-16 03:40:58 +00:00
correct initialization code (#3376)
Explicitly initialize struct members rather than relying on compiler extensions.
This commit is contained in:
parent
76d5abc868
commit
b0a9a5a6a4
2 changed files with 2 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue