Fix compilation errors.
Under gcc11(+) both message and received would cause errors for potentially being used uninitialised. We fixed many of these issues in another PR, but this one is only seen under certain configs. Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
parent
b92b88cc4c
commit
21c8fe5c6e
2 changed files with 5 additions and 2 deletions
|
@ -2236,8 +2236,8 @@ exit:
|
|||
void ssl_mock_sanity( )
|
||||
{
|
||||
enum { MSGLEN = 105 };
|
||||
unsigned char message[MSGLEN];
|
||||
unsigned char received[MSGLEN];
|
||||
unsigned char message[MSGLEN] = { 0 };
|
||||
unsigned char received[MSGLEN] = { 0 };
|
||||
mbedtls_mock_socket socket;
|
||||
|
||||
mbedtls_mock_socket_init( &socket );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue