Check NULL if Py_InitModule fails.

This commit is contained in:
Hye-Shik Chang 2006-03-06 07:51:19 +00:00
parent 82f6cc4728
commit 32feb8592f

View file

@ -388,7 +388,8 @@ errorexit:
init_codecs_##loc(void) \
{ \
PyObject *m = Py_InitModule("_codecs_" #loc, __methods);\
(void)register_maps(m); \
if (m != NULL) \
(void)register_maps(m); \
}
#endif