summaryrefslogtreecommitdiffstats
path: root/Modules/signalmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/signalmodule.c')
-rw-r--r--Modules/signalmodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c
index bec2729..a729604 100644
--- a/Modules/signalmodule.c
+++ b/Modules/signalmodule.c
@@ -317,6 +317,8 @@ initsignal(void)
/* Create the module and add the functions */
m = Py_InitModule3("signal", signal_methods, module_doc);
+ if (m == NULL)
+ return;
/* Add some symbolic constants to the module */
d = PyModule_GetDict(m);