summaryrefslogtreecommitdiffstats
path: root/Modules/operator.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/operator.c')
-rw-r--r--Modules/operator.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/operator.c b/Modules/operator.c
index ddd0252..4817d33 100644
--- a/Modules/operator.c
+++ b/Modules/operator.c
@@ -578,6 +578,8 @@ initoperator(void)
/* Create the module and add the functions */
m = Py_InitModule4("operator", operator_methods, operator_doc,
(PyObject*)NULL, PYTHON_API_VERSION);
+ if (m == NULL)
+ return;
if (PyType_Ready(&itemgetter_type) < 0)
return;