Commit e0d0c089 authored by Hye-Shik Chang's avatar Hye-Shik Chang

Check NULL if Py_InitModule fails.

parent 82e44f3f
...@@ -388,6 +388,7 @@ errorexit: ...@@ -388,6 +388,7 @@ errorexit:
init_codecs_##loc(void) \ init_codecs_##loc(void) \
{ \ { \
PyObject *m = Py_InitModule("_codecs_" #loc, __methods);\ PyObject *m = Py_InitModule("_codecs_" #loc, __methods);\
if (m != NULL) \
(void)register_maps(m); \ (void)register_maps(m); \
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment