Commit 4d0cfe80 authored by Paul Bakker's avatar Paul Bakker
Browse files

Split assert() with side effects in test suite helper

parent 6c343d7d
......@@ -113,7 +113,8 @@ static unsigned char *zero_alloc( size_t len )
void *p;
size_t actual_len = len != 0 ? len : 1;
assert( ( p = polarssl_malloc( actual_len ) ) != NULL );
p = polarssl_malloc( actual_len );
assert( p != NULL );
memset( p, 0x00, actual_len );
......@@ -139,7 +140,8 @@ static unsigned char *unhexify_alloc( const char *ibuf, size_t *olen )
if( *olen == 0 )
return( zero_alloc( *olen ) );
assert( ( obuf = polarssl_malloc( *olen ) ) != NULL );
obuf = polarssl_malloc( *olen );
assert( obuf != NULL );
(void) unhexify( obuf, ibuf );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment