commit | 1568355afdde5a861550292d6d85888d5cc1a7af | [log] [tgz] |
---|---|---|
author | Tim Duesterhus <tim@bastelstu.be> | Thu Mar 04 23:50:13 2021 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Fri Mar 05 08:28:53 2021 +0100 |
tree | 5d1499fbac71d23627033d17e66051790f0b13cb | |
parent | dcf753aabec42c81a277ed101038ddcad9aec9c3 [diff] [blame] |
CLEANUP: Replace for loop with only a condition by while Refactoring performed with the following Coccinelle patch: @@ expression e; statement S; @@ - for (;e;) + while (e) S
diff --git a/src/h2.c b/src/h2.c index 84aa660..9ff3c93 100644 --- a/src/h2.c +++ b/src/h2.c
@@ -535,7 +535,7 @@ * insert "; " before the new value. */ fs += tl; // first one is already counted - for (; (ck = list[ck].n.len) >= 0 ; ) { + while ((ck = list[ck].n.len) >= 0) { vl = list[ck].v.len; tl += vl + 2; if (tl > fs)