summaryrefslogtreecommitdiffstats
path: root/Modules/svmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/svmodule.c')
-rw-r--r--Modules/svmodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/svmodule.c b/Modules/svmodule.c
index 9bd7968..fb58f19 100644
--- a/Modules/svmodule.c
+++ b/Modules/svmodule.c
@@ -956,6 +956,8 @@ initsv(void)
PyObject *m, *d;
m = Py_InitModule("sv", sv_methods);
+ if (m == NULL)
+ return;
d = PyModule_GetDict(m);
SvError = PyErr_NewException("sv.error", NULL, NULL);