summaryrefslogtreecommitdiff
path: root/Modules/dlmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/dlmodule.c')
-rw-r--r--Modules/dlmodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/dlmodule.c b/Modules/dlmodule.c
index 927f4c0ac8..09556814f2 100644
--- a/Modules/dlmodule.c
+++ b/Modules/dlmodule.c
@@ -219,6 +219,8 @@ initdl(void)
/* Create the module and add the functions */
m = Py_InitModule("dl", dl_methods);
+ if (m == NULL)
+ return;
/* Add some symbolic constants to the module */
d = PyModule_GetDict(m);