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;
for(;;) {
// Skip 0 length value
j = std::find_if_not(j, end,
[](uint8_t c)
{
return c == '\0';
});
j = std::find_if(j, end,
[](uint8_t c)
{
return c != '\0';
});
if(j == end) {
break;
}