diff options
author | Matt Caswell <matt@openssl.org> | 2021-10-22 10:17:14 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2021-10-27 12:22:25 +0100 |
commit | 37467b2752f75ce80437120f704452982b7c1998 (patch) | |
tree | 9695c50cbce2e881e15c84111f7170827d8f4863 | |
parent | 971dbab4ad20193c27e8c3865e92e8f487b89334 (diff) |
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 <pauli@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/16887)
-rw-r--r-- | test/packettest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/packettest.c b/test/packettest.c index 2d6c2a6ef9..e8aec47446 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() */ |