Commit 5f4159a0 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

tests: Fix uninitialized bug

parent 0a2a5e66
......@@ -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);
......
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