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

Check NULL if Py_InitModule fails.

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