From 5f4159a0d7972c667061f4dde2a9ad0989307da6 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 27 Feb 2017 21:26:12 +0900 Subject: [PATCH] tests: Fix uninitialized bug --- tests/nghttp2_frame_test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/nghttp2_frame_test.c b/tests/nghttp2_frame_test.c index cf519040..e1064e03 100644 --- a/tests/nghttp2_frame_test.c +++ b/tests/nghttp2_frame_test.c @@ -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);