From: Matt Caswell Date: Fri, 22 Oct 2021 09:17:14 +0000 (+0100) Subject: Fix a gcc 11.2.0 warning X-Git-Tag: OpenSSL_1_1_1m~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c03fa13e4ab4c27ef22284e56e6ddb43798e5874;p=thirdparty%2Fopenssl.git Fix a gcc 11.2.0 warning gcc 11.2.0 is the default on Ubuntu 21.10. It emits a (spurious) warning when compiling test/packettest.c, which causes --strict-warnings builds to fail. A simple fix avoids the warning. Reviewed-by: Paul Dale Reviewed-by: Dmitry Belyavskiy (Merged from https://github.com/openssl/openssl/pull/16887) (cherry picked from commit 37467b2752f75ce80437120f704452982b7c1998) --- diff --git a/test/packettest.c b/test/packettest.c index 6c82d04414c..83168c02617 100644 --- a/test/packettest.c +++ b/test/packettest.c @@ -302,7 +302,7 @@ static int test_PACKET_forward(void) static int test_PACKET_buf_init(void) { - unsigned char buf1[BUF_LEN]; + unsigned char buf1[BUF_LEN] = { 0 }; PACKET pkt; /* Also tests PACKET_remaining() */