avoid -Wmaybe-uninitialized when buiding with gcc11

Signed-off-by: Shawn Carey <shawn.carey@netfoundry.io>
This commit is contained in:
Shawn Carey 2021-05-13 10:38:32 -04:00
parent aa13e93941
commit 03092f5821

View File

@ -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;