Commit 491a3fe0 authored by Manuel Pégourié-Gonnard's avatar Manuel Pégourié-Gonnard
Browse files

Fix compile error in memory_buffer_alloc_selftest

parent 7defc775
......@@ -611,7 +611,10 @@ static int check_pointer( void *p )
static int check_all_free( )
{
if( heap.current_alloc_size != 0 ||
if(
#if defined(POLARSSL_MEMORY_DEBUG)
heap.total_used != 0 ||
#endif
heap.first != heap.first_free ||
(void *) heap.first != (void *) heap.buf )
{
......
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