mirror of
https://github.com/python/cpython.git
synced 2025-11-03 15:11:34 +00:00
Check return value of PyType_Ready(&EncodingMapType)
CID 486654
This commit is contained in:
parent
09ca794afe
commit
26532f7519
1 changed files with 2 additions and 1 deletions
|
|
@ -14164,7 +14164,8 @@ int _PyUnicode_Init(void)
|
||||||
PyUnicode_2BYTE_KIND, linebreak,
|
PyUnicode_2BYTE_KIND, linebreak,
|
||||||
Py_ARRAY_LENGTH(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)
|
if (PyType_Ready(&PyFieldNameIter_Type) < 0)
|
||||||
Py_FatalError("Can't initialize field name iterator type");
|
Py_FatalError("Can't initialize field name iterator type");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue