Commit b578735d authored by Christian Heimes's avatar Christian Heimes

Check return value of PyType_Ready(&EncodingMapType)

CID 486654
parents 74ba26a4 26532f75
......@@ -14578,7 +14578,8 @@ int _PyUnicode_Init(void)
PyUnicode_2BYTE_KIND, linebreak,
Py_ARRAY_LENGTH(linebreak));
PyType_Ready(&EncodingMapType);
if (PyType_Ready(&EncodingMapType) < 0)
Py_FatalError("Can't initialize encoding map type");
if (PyType_Ready(&PyFieldNameIter_Type) < 0)
Py_FatalError("Can't initialize field name iterator type");
......
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