summaryrefslogtreecommitdiffstats
path: root/Modules/_sre.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_sre.c')
-rw-r--r--Modules/_sre.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_sre.c b/Modules/_sre.c
index 1f0a8bc..4d9d1cd 100644
--- a/Modules/_sre.c
+++ b/Modules/_sre.c
@@ -3389,6 +3389,8 @@ PyMODINIT_FUNC init_sre(void)
Scanner_Type.ob_type = &PyType_Type;
m = Py_InitModule("_" SRE_MODULE, _functions);
+ if (m == NULL)
+ return;
d = PyModule_GetDict(m);
x = PyInt_FromLong(SRE_MAGIC);