diff options
Diffstat (limited to 'Modules/imageop.c')
-rw-r--r-- | Modules/imageop.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/imageop.c b/Modules/imageop.c index 5b87898..92f805a 100644 --- a/Modules/imageop.c +++ b/Modules/imageop.c @@ -776,6 +776,8 @@ initimageop(void) { PyObject *m; m = Py_InitModule("imageop", imageop_methods); + if (m == NULL) + return; ImageopDict = PyModule_GetDict(m); ImageopError = PyErr_NewException("imageop.error", NULL, NULL); if (ImageopError != NULL) |