summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Modules')
-rw-r--r--Modules/threadmodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/threadmodule.c b/Modules/threadmodule.c
index 448b11c..3614296 100644
--- a/Modules/threadmodule.c
+++ b/Modules/threadmodule.c
@@ -696,6 +696,8 @@ initthread(void)
/* Initialize types: */
if (PyType_Ready(&localtype) < 0)
return;
+ if (PyType_Ready(&Locktype) < 0)
+ return;
/* Create the module and add the functions */
m = Py_InitModule3("thread", thread_methods, thread_doc);