diff options
author | Todd Short <tshort@akamai.com> | 2017-05-09 16:19:10 +0200 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2017-05-17 18:43:56 +0200 |
commit | de34966b7cc5a718e720349f39161ade4f4232e3 (patch) | |
tree | 00e76078ea846c5cd1391030cbb898d4cd007c0a /test/packettest.c | |
parent | Add a test for a missing sig algs extension (diff) | |
download | openssl-de34966b7cc5a718e720349f39161ade4f4232e3.tar.xz openssl-de34966b7cc5a718e720349f39161ade4f4232e3.zip |
Fix compile error/warning in packettest.c
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3416)
Diffstat (limited to '')
-rw-r--r-- | test/packettest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/packettest.c b/test/packettest.c index 4866d27abd..5fe6a13248 100644 --- a/test/packettest.c +++ b/test/packettest.c @@ -420,7 +420,7 @@ static int test_PACKET_as_length_prefixed_1() unsigned char buf1[BUF_LEN]; const size_t len = 16; unsigned int i; - PACKET pkt, exact_pkt, subpkt; + PACKET pkt, exact_pkt, subpkt = {0}; buf1[0] = len; for (i = 1; i < BUF_LEN; i++) @@ -443,7 +443,7 @@ static int test_PACKET_as_length_prefixed_2() unsigned char buf[1024]; const size_t len = 516; /* 0x0204 */ unsigned int i; - PACKET pkt, exact_pkt, subpkt; + PACKET pkt, exact_pkt, subpkt = {0}; for (i = 1; i <= 1024; i++) buf[i-1] = (i * 2) & 0xff; |