Kaydet (Commit) 32feb859 authored tarafından Hye-Shik Chang's avatar Hye-Shik Chang

Check NULL if Py_InitModule fails.

üst 82f6cc47
...@@ -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