summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-07-20 12:57:16 (GMT)
committerChristian Heimes <christian@cheimes.de>2013-07-20 12:57:16 (GMT)
commit26532f7519b9b7764dd046acab49d5fc5dbcd94d (patch)
treeff2c95da6bd19e7ca63e6fb6c4f59ba582e88b73 /Objects
parent09ca794afe0fe30d7c1a04c14c2913bb1e8a4384 (diff)
downloadcpython-26532f7519b9b7764dd046acab49d5fc5dbcd94d.zip
cpython-26532f7519b9b7764dd046acab49d5fc5dbcd94d.tar.gz
cpython-26532f7519b9b7764dd046acab49d5fc5dbcd94d.tar.bz2
Check return value of PyType_Ready(&EncodingMapType)
CID 486654
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c3
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");