src: Fix invalid memory access

This commit is contained in:
Tatsuhiro Tsujikawa 2015-02-10 21:28:17 +09:00
parent 68866f53b0
commit 3e2714810a
1 changed files with 1 additions and 1 deletions

View File

@ -938,7 +938,7 @@ parse_next_link_header_once(const char *first, const char *last) {
almost_done: almost_done:
assert(first == last || *first == ','); assert(first == last || *first == ',');
if (*first == ',') { if (first != last) {
++first; ++first;
} }
if (ok && !ign) { if (ok && !ign) {