Skip to content

Commit

Permalink
avoid -Wmaybe-uninitialized when buiding with gcc11
Browse files Browse the repository at this point in the history
Signed-off-by: Shawn Carey <shawn.carey@netfoundry.io>
  • Loading branch information
scareything committed May 19, 2021
1 parent aa13e93 commit 03092f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/suites/test_suite_ssl.function
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 03092f5

Please sign in to comment.