diff options
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r-- | Python/sysmodule.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 5bbe950224..f793b99348 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -1027,6 +1027,8 @@ _PySys_Init(void) #endif m = Py_InitModule3("sys", sys_methods, sys_doc); + if (m == NULL) + return NULL; sysdict = PyModule_GetDict(m); { |