mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-28 00:35:21 +00:00
Change brace initialization to memset
Signed-off-by: David Horstmann <david.horstmann@arm.com>
This commit is contained in:
parent
01dd548025
commit
2bb9c8a884
@ -824,10 +824,12 @@ void mbedtls_x509_get_name( char * rdn_sequence, int exp_ret )
|
|||||||
unsigned char *name;
|
unsigned char *name;
|
||||||
unsigned char *p;
|
unsigned char *p;
|
||||||
size_t name_len;
|
size_t name_len;
|
||||||
mbedtls_x509_name head = { 0 };
|
mbedtls_x509_name head;
|
||||||
mbedtls_x509_name *allocated, *prev;
|
mbedtls_x509_name *allocated, *prev;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
memset( &head, 0, sizeof( head ) );
|
||||||
|
|
||||||
name = mbedtls_test_unhexify_alloc( rdn_sequence, &name_len );
|
name = mbedtls_test_unhexify_alloc( rdn_sequence, &name_len );
|
||||||
p = name;
|
p = name;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user