mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-07 02:28:53 +08:00
Silence warning with scan-build
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user