summaryrefslogtreecommitdiffstats
path: root/Modules/regexmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/regexmodule.c')
-rw-r--r--Modules/regexmodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/regexmodule.c b/Modules/regexmodule.c
index 9f84032..d449932 100644
--- a/Modules/regexmodule.c
+++ b/Modules/regexmodule.c
@@ -653,6 +653,8 @@ initregex(void)
Regextype.ob_type = &PyType_Type;
m = Py_InitModule("regex", regex_global_methods);
+ if (m == NULL)
+ return;
d = PyModule_GetDict(m);
if (PyErr_Warn(PyExc_DeprecationWarning,