提交 37467b27 编写于 作者: M Matt Caswell

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: NPaul Dale <pauli@openssl.org>
Reviewed-by: NDmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/16887)
上级 971dbab4
...@@ -302,7 +302,7 @@ static int test_PACKET_forward(void) ...@@ -302,7 +302,7 @@ static int test_PACKET_forward(void)
static int test_PACKET_buf_init(void) static int test_PACKET_buf_init(void)
{ {
unsigned char buf1[BUF_LEN]; unsigned char buf1[BUF_LEN] = { 0 };
PACKET pkt; PACKET pkt;
/* Also tests PACKET_remaining() */ /* Also tests PACKET_remaining() */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册