From 03092f5821d1045828469791c7ad8fb6b5d443da Mon Sep 17 00:00:00 2001 From: Shawn Carey Date: Thu, 13 May 2021 10:38:32 -0400 Subject: [PATCH] avoid -Wmaybe-uninitialized when buiding with gcc11 Signed-off-by: Shawn Carey --- tests/suites/test_suite_ssl.function | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/suites/test_suite_ssl.function b/tests/suites/test_suite_ssl.function index ef8d3b269..d9261d1a2 100644 --- a/tests/suites/test_suite_ssl.function +++ b/tests/suites/test_suite_ssl.function @@ -2649,7 +2649,7 @@ exit: void ssl_message_mock_uninitialized( ) { enum { MSGLEN = 10 }; - unsigned char message[MSGLEN], received[MSGLEN]; + unsigned char message[MSGLEN] = {0}, received[MSGLEN]; mbedtls_mock_socket client, server; mbedtls_test_message_queue server_queue, client_queue; mbedtls_test_message_socket_context server_context, client_context;