diff options
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2015-02-05 12:08:47 +0100 |
---|---|---|
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2015-02-16 17:28:11 +0000 |
commit | 491a3fe0578b570d823c199d367c73c36e4063c5 (patch) | |
tree | f47f8bb716ed9ed80033dc228cf001f7e6ead01d | |
parent | 7defc7759d2bd47a692b1d607e210b1ca5be135b (diff) | |
download | mbedtls-491a3fe0578b570d823c199d367c73c36e4063c5.zip mbedtls-491a3fe0578b570d823c199d367c73c36e4063c5.tar.gz mbedtls-491a3fe0578b570d823c199d367c73c36e4063c5.tar.bz2 |
Fix compile error in memory_buffer_alloc_selftest
-rw-r--r-- | library/memory_buffer_alloc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/library/memory_buffer_alloc.c b/library/memory_buffer_alloc.c index 48cda6c..7371008 100644 --- a/library/memory_buffer_alloc.c +++ b/library/memory_buffer_alloc.c @@ -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 ) { |