tests: Fix uninitialized bug
This commit is contained in:
parent
0a2a5e6604
commit
5f4159a0d7
|
@ -522,6 +522,7 @@ void test_nghttp2_nv_array_copy(void) {
|
|||
bignv.namelen = strlen("echo");
|
||||
bignv.valuelen = (1 << 14) - 1;
|
||||
bignv.value = mem->malloc(bignv.valuelen, NULL);
|
||||
bignv.flags = NGHTTP2_NV_FLAG_NONE;
|
||||
memset(bignv.value, '0', bignv.valuelen);
|
||||
|
||||
rv = nghttp2_nv_array_copy(&nva, NULL, 0, mem);
|
||||
|
|
Loading…
Reference in New Issue