diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-10-18 20:10:14 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-10-18 20:10:14 (GMT) |
commit | 6707293e750436fedd3a5fac1ca7057b14112d5b (patch) | |
tree | 1d5d75be10005940d367879abad17feee77f4f07 /Objects | |
parent | 9e92188f53b89bef01824c061650908baddb8e16 (diff) | |
download | cpython-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.c | 1 |
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: |