Fix a gcc 11.2.0 warning
[openssl.git] / test / packettest.c
index 2d6c2a6ef99f5c749277de6afff4dca26e5265d9..e8aec474463fe284ce28c3b2379d568a1f498218 100644 (file)
@@ -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() */