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

Remove unnecessary NULL assignments

Signed-off-by: David Horstmann <david.horstmann@arm.com>
This commit is contained in:
David Horstmann
2022-10-18 17:42:22 +01:00
parent 11307a1933
commit 178ec96c89

View File

@ -538,14 +538,9 @@ int mbedtls_x509_get_name( unsigned char **p, const unsigned char *end,
} }
error: error:
prev = NULL;
/* Skip the first element as we did not allocate it */ /* Skip the first element as we did not allocate it */
allocated = head->next; allocated = head->next;
/* Make sure we cannot be followed along this list */
head->next = NULL;
while( allocated != NULL ) while( allocated != NULL )
{ {
prev = allocated; prev = allocated;