src: Code cleanup

This commit is contained in:
Tatsuhiro Tsujikawa 2013-12-22 15:33:37 +09:00
parent d4b1890054
commit 2af9a37643
1 changed files with 5 additions and 5 deletions

View File

@ -229,11 +229,11 @@ std::vector<nghttp2_nv> sort_nva(const nghttp2_nv *nva, size_t nvlen)
auto end = v[i].value + v[i].valuelen; auto end = v[i].value + v[i].valuelen;
for(;;) { for(;;) {
// Skip 0 length value // Skip 0 length value
j = std::find_if_not(j, end, j = std::find_if(j, end,
[](uint8_t c) [](uint8_t c)
{ {
return c == '\0'; return c != '\0';
}); });
if(j == end) { if(j == end) {
break; break;
} }