tests: Fix uninitialized bug

This commit is contained in:
Tatsuhiro Tsujikawa 2017-02-27 21:26:12 +09:00
parent 0a2a5e6604
commit 5f4159a0d7
1 changed files with 1 additions and 0 deletions

View File

@ -522,6 +522,7 @@ void test_nghttp2_nv_array_copy(void) {
bignv.namelen = strlen("echo"); bignv.namelen = strlen("echo");
bignv.valuelen = (1 << 14) - 1; bignv.valuelen = (1 << 14) - 1;
bignv.value = mem->malloc(bignv.valuelen, NULL); bignv.value = mem->malloc(bignv.valuelen, NULL);
bignv.flags = NGHTTP2_NV_FLAG_NONE;
memset(bignv.value, '0', bignv.valuelen); memset(bignv.value, '0', bignv.valuelen);
rv = nghttp2_nv_array_copy(&nva, NULL, 0, mem); rv = nghttp2_nv_array_copy(&nva, NULL, 0, mem);