Change brace initialization to memset

Signed-off-by: David Horstmann <david.horstmann@arm.com>
This commit is contained in:
David Horstmann 2022-10-20 10:18:37 +01:00
parent 01dd548025
commit 2bb9c8a884

View File

@ -824,10 +824,12 @@ void mbedtls_x509_get_name( char * rdn_sequence, int exp_ret )
unsigned char *name;
unsigned char *p;
size_t name_len;
mbedtls_x509_name head = { 0 };
mbedtls_x509_name head;
mbedtls_x509_name *allocated, *prev;
int ret;
memset( &head, 0, sizeof( head ) );
name = mbedtls_test_unhexify_alloc( rdn_sequence, &name_len );
p = name;