File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -1015,6 +1015,7 @@ resize_compact(PyObject *unicode, Py_ssize_t length)
1015
1015
_PyUnicode_UTF8 (unicode ) = NULL ;
1016
1016
_PyUnicode_UTF8_LENGTH (unicode ) = 0 ;
1017
1017
}
1018
+ _PyUnicode_STATE (unicode ).embed_null = EMBED_NULL_UNKNOWN ;
1018
1019
#ifdef Py_TRACE_REFS
1019
1020
_Py_ForgetReference (unicode );
1020
1021
#endif
@@ -1068,6 +1069,7 @@ resize_inplace(PyObject *unicode, Py_ssize_t length)
1068
1069
_PyUnicode_UTF8 (unicode ) = NULL ;
1069
1070
_PyUnicode_UTF8_LENGTH (unicode ) = 0 ;
1070
1071
}
1072
+ _PyUnicode_STATE (unicode ).embed_null = EMBED_NULL_UNKNOWN ;
1071
1073
1072
1074
data = (PyObject * )PyObject_Realloc (data , new_size );
1073
1075
if (data == NULL ) {
@@ -11082,6 +11084,7 @@ PyUnicode_Append(PyObject **p_left, PyObject *right)
11082
11084
Py_DECREF (left );
11083
11085
* p_left = res ;
11084
11086
}
11087
+ assert (_PyUnicode_STATE (* p_left ).embed_null == EMBED_NULL_UNKNOWN );
11085
11088
assert (_PyUnicode_CheckConsistency (* p_left , 1 ));
11086
11089
return ;
11087
11090
You can’t perform that action at this time.
0 commit comments