From 1ac754fa10f5d199d19911e21185d0970cb3073f Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Thu, 19 Jan 2006 06:09:39 +0000 Subject: Check return result from Py_InitModule*(). This API can fail. Probably should be backported. --- Python/sysmodule.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Python/sysmodule.c') 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); { -- cgit v1.2.1