Silence warning with scan-build

This commit is contained in:
Tatsuhiro Tsujikawa 2015-11-06 20:07:40 +09:00
parent 7755c2827c
commit dfbbb08124
1 changed files with 1 additions and 4 deletions

View File

@ -770,10 +770,7 @@ int nghttp2_nv_array_copy(nghttp2_nv **nva_ptr, const nghttp2_nv *nva,
}
p = *nva_ptr;
if (buflen > sizeof(nghttp2_nv) * nvlen) {
data = (uint8_t *)(*nva_ptr) + sizeof(nghttp2_nv) * nvlen;
}
data = (uint8_t *)(*nva_ptr) + sizeof(nghttp2_nv) * nvlen;
for (i = 0; i < nvlen; ++i) {
p->flags = nva[i].flags;