mirror of
https://gitee.com/openharmony/third_party_nghttp2
synced 2024-11-27 10:00:40 +00:00
Silence warning with scan-build
This commit is contained in:
parent
7755c2827c
commit
dfbbb08124
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user