summaryrefslogtreecommitdiffstats
path: root/Modules/imgfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/imgfile.c')
-rw-r--r--Modules/imgfile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/imgfile.c b/Modules/imgfile.c
index f9fa25b..bb85a78 100644
--- a/Modules/imgfile.c
+++ b/Modules/imgfile.c
@@ -492,6 +492,8 @@ initimgfile(void)
{
PyObject *m, *d;
m = Py_InitModule("imgfile", imgfile_methods);
+ if (m == NULL)
+ return;
d = PyModule_GetDict(m);
ImgfileError = PyErr_NewException("imgfile.error", NULL, NULL);
if (ImgfileError != NULL)