summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-10-18 20:10:14 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-10-18 20:10:14 (GMT)
commit6707293e750436fedd3a5fac1ca7057b14112d5b (patch)
tree1d5d75be10005940d367879abad17feee77f4f07 /Objects
parent9e92188f53b89bef01824c061650908baddb8e16 (diff)
downloadcpython-6707293e750436fedd3a5fac1ca7057b14112d5b.zip
cpython-6707293e750436fedd3a5fac1ca7057b14112d5b.tar.gz
cpython-6707293e750436fedd3a5fac1ca7057b14112d5b.tar.bz2
Add consistency check to _PyUnicode_New()
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 9d11546..1068916 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -781,6 +781,7 @@ _PyUnicode_New(Py_ssize_t length)
_PyUnicode_LENGTH(unicode) = 0;
_PyUnicode_UTF8(unicode) = NULL;
_PyUnicode_UTF8_LENGTH(unicode) = 0;
+ assert(_PyUnicode_CheckConsistency(unicode, 0));
return unicode;
onError: