test: build_stl_str_hl (#8703)

Improve coverage of `build_stl_str_hl`.
Minor removal of dead code in the tested function.
This commit is contained in:
ZviRackover
2018-07-10 21:46:40 +03:00
committed by Justin M. Keyes
parent 2574f299e5
commit 627cc1b3d8
2 changed files with 19 additions and 3 deletions

View File

@@ -3273,9 +3273,6 @@ int build_stl_str_hl(
// Two `%` in a row is the escape sequence to print a
// single `%` in the output buffer.
if (*fmt_p == '%') {
// Ignore the character if we're out of room in the output buffer.
if (out_p >= out_end_p)
break;
*out_p++ = *fmt_p++;
prevchar_isflag = prevchar_isitem = false;
continue;