File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -13796,14 +13796,14 @@ _PyUnicodeWriter_WriteASCIIString(_PyUnicodeWriter *writer,
13796
13796
assert (ucs1lib_find_max_char ((Py_UCS1 * )str , (Py_UCS1 * )str + len ) < 128 );
13797
13797
13798
13798
if (writer -> buffer == NULL && !writer -> overallocate ) {
13799
- PyObject * str ;
13800
-
13801
- str = _PyUnicode_FromASCII (str , len );
13799
+ PyObject * s ;
13800
+
13801
+ s = _PyUnicode_FromASCII (str , len );
13802
13802
if (str == NULL )
13803
13803
return -1 ;
13804
13804
13805
13805
writer -> readonly = 1 ;
13806
- writer -> buffer = str ;
13806
+ writer -> buffer = s ;
13807
13807
_PyUnicodeWriter_Update (writer );
13808
13808
writer -> pos += len ;
13809
13809
return 0 ;
@@ -13816,10 +13816,10 @@ _PyUnicodeWriter_WriteASCIIString(_PyUnicodeWriter *writer,
13816
13816
{
13817
13817
case PyUnicode_1BYTE_KIND :
13818
13818
{
13819
- const Py_UCS1 * str = (const Py_UCS1 * )str ;
13819
+ const Py_UCS1 * s = (const Py_UCS1 * )str ;
13820
13820
Py_UCS1 * data = writer -> data ;
13821
13821
13822
- memcpy (data + writer -> pos , str , len );
13822
+ memcpy (data + writer -> pos , s , len );
13823
13823
break ;
13824
13824
}
13825
13825
case PyUnicode_2BYTE_KIND :
You can’t perform that action at this time.
0 commit comments