diff options
author | Christian Heimes <christian@cheimes.de> | 2013-07-20 12:57:16 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-07-20 12:57:16 (GMT) |
commit | 26532f7519b9b7764dd046acab49d5fc5dbcd94d (patch) | |
tree | ff2c95da6bd19e7ca63e6fb6c4f59ba582e88b73 /Objects/unicodeobject.c | |
parent | 09ca794afe0fe30d7c1a04c14c2913bb1e8a4384 (diff) | |
download | cpython-26532f7519b9b7764dd046acab49d5fc5dbcd94d.zip cpython-26532f7519b9b7764dd046acab49d5fc5dbcd94d.tar.gz cpython-26532f7519b9b7764dd046acab49d5fc5dbcd94d.tar.bz2 |
Check return value of PyType_Ready(&EncodingMapType)
CID 486654
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r-- | Objects/unicodeobject.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 2e40c27..446520a 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -14164,7 +14164,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"); |