Commit dfbbb081 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Silence warning with scan-build

parent 7755c282
...@@ -770,10 +770,7 @@ int nghttp2_nv_array_copy(nghttp2_nv **nva_ptr, const nghttp2_nv *nva, ...@@ -770,10 +770,7 @@ int nghttp2_nv_array_copy(nghttp2_nv **nva_ptr, const nghttp2_nv *nva,
} }
p = *nva_ptr; p = *nva_ptr;
data = (uint8_t *)(*nva_ptr) + sizeof(nghttp2_nv) * nvlen;
if (buflen > sizeof(nghttp2_nv) * nvlen) {
data = (uint8_t *)(*nva_ptr) + sizeof(nghttp2_nv) * nvlen;
}
for (i = 0; i < nvlen; ++i) { for (i = 0; i < nvlen; ++i) {
p->flags = nva[i].flags; p->flags = nva[i].flags;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment