[Python-checkins] cpython: Add consistency check to _PyUnicode_New()
victor.stinner
python-checkins at python.org
Tue Oct 18 22:09:17 CEST 2011
http://hg.python.org/cpython/rev/e2d82169458e
changeset: 72979:e2d82169458e
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Tue Oct 18 22:10:14 2011 +0200
summary:
Add consistency check to _PyUnicode_New()
files:
Objects/unicodeobject.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -781,6 +781,7 @@
_PyUnicode_LENGTH(unicode) = 0;
_PyUnicode_UTF8(unicode) = NULL;
_PyUnicode_UTF8_LENGTH(unicode) = 0;
+ assert(_PyUnicode_CheckConsistency(unicode, 0));
return unicode;
onError:
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list