1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-30 22:43:08 +03:00

Remove a few redundant memset after calloc.

Using the following semantic patch provided by Mansour Moufid:

@@
expression x;
@@
  x = mbedtls_calloc(...)
  ...
- memset(x, 0, ...);
This commit is contained in:
Manuel Pégourié-Gonnard
2015-05-27 16:49:37 +02:00
parent b2a18a2a98
commit 1b8de57827
8 changed files with 1 additions and 17 deletions

View File

@ -243,7 +243,6 @@ static int x509_get_entries( unsigned char **p,
if( cur_entry->next == NULL )
return( MBEDTLS_ERR_X509_MALLOC_FAILED );
memset( cur_entry->next, 0, sizeof( mbedtls_x509_crl_entry ) );
cur_entry = cur_entry->next;
}
}