Skip to content

Commit c0a2037

Browse files
ashm-devvstinner
andauthored
Update Objects/unicode_writer.c
Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent b3d94b3 commit c0a2037

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Objects/unicode_writer.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,9 @@ _PyUnicodeWriter_WriteASCIIString(_PyUnicodeWriter *writer,
465465
if (len == -1)
466466
len = strlen(ascii);
467467

468-
if (len == 0)
468+
if (len == 0) {
469469
return 0;
470+
}
470471

471472
assert(ucs1lib_find_max_char((const Py_UCS1*)ascii, (const Py_UCS1*)ascii + len) < 128);
472473

0 commit comments

Comments
 (0)