summaryrefslogtreecommitdiffstats
path: root/Modules/threadmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/threadmodule.c')
-rw-r--r--Modules/threadmodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/threadmodule.c b/Modules/threadmodule.c
index 3025595..fccdd62 100644
--- a/Modules/threadmodule.c
+++ b/Modules/threadmodule.c
@@ -638,6 +638,8 @@ initthread(void)
/* Create the module and add the functions */
m = Py_InitModule3("thread", thread_methods, thread_doc);
+ if (m == NULL)
+ return;
/* Add a symbolic constant */
d = PyModule_GetDict(m);