mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-03-23 06:35:08 +00:00
Remove redundant memset()
The preceding calloc() already zeroizes that memory area, therfore the memset() is not necessary. Compilers are likely to optimize this out, but it still can be confusing to readers.
This commit is contained in:
parent
6c379b4b80
commit
293c3dae6d
|
@ -1858,7 +1858,6 @@ int mbedtls_x509_parse_subject_alternative_name( const mbedtls_x509_crt *crt,
|
|||
if( prev_san != NULL )
|
||||
prev_san->next = cur_san;
|
||||
|
||||
memset( cur_san, 0, sizeof( mbedtls_x509_subject_alternative_name ) );
|
||||
cur_san->type = MBEDTLS_X509_SAN_DNS_NAME;
|
||||
|
||||
memcpy( &cur_san->san.unstructured_name,
|
||||
|
|
Loading…
Reference in a new issue