diff options
Diffstat (limited to 'Modules/rgbimgmodule.c')
-rw-r--r-- | Modules/rgbimgmodule.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/rgbimgmodule.c b/Modules/rgbimgmodule.c index 904c64b..8c70d95 100644 --- a/Modules/rgbimgmodule.c +++ b/Modules/rgbimgmodule.c @@ -756,6 +756,8 @@ initrgbimg(void) { PyObject *m, *d; m = Py_InitModule("rgbimg", rgbimg_methods); + if (m == NULL) + return; d = PyModule_GetDict(m); ImgfileError = PyErr_NewException("rgbimg.error", NULL, NULL); if (ImgfileError != NULL) |