mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Add consistency check to _PyUnicode_New()
This commit is contained in:
parent
9e92188f53
commit
6707293e75
1 changed files with 1 additions and 0 deletions
|
@ -781,6 +781,7 @@ _PyUnicode_New(Py_ssize_t length)
|
||||||
_PyUnicode_LENGTH(unicode) = 0;
|
_PyUnicode_LENGTH(unicode) = 0;
|
||||||
_PyUnicode_UTF8(unicode) = NULL;
|
_PyUnicode_UTF8(unicode) = NULL;
|
||||||
_PyUnicode_UTF8_LENGTH(unicode) = 0;
|
_PyUnicode_UTF8_LENGTH(unicode) = 0;
|
||||||
|
assert(_PyUnicode_CheckConsistency(unicode, 0));
|
||||||
return unicode;
|
return unicode;
|
||||||
|
|
||||||
onError:
|
onError:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue