Fix braces in mbedtls_memory_buffer_alloc_status()
diff --git a/ChangeLog b/ChangeLog
index 4fbdb3d..b2605e9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -20,6 +20,7 @@
Bugfix
* Fix an issue with MicroBlaze support in bn_mul.h which was causing the
build to fail. Found by zv-io. Fixes #1651.
+ * Fix braces in mbedtls_memory_buffer_alloc_status(). Found by sbranden, #552.
Changes
* Support TLS testing in out-of-source builds using cmake. Fixes #1193.
diff --git a/library/memory_buffer_alloc.c b/library/memory_buffer_alloc.c
index ceaeda1..51ea7c4 100644
--- a/library/memory_buffer_alloc.c
+++ b/library/memory_buffer_alloc.c
@@ -518,7 +518,9 @@
heap.alloc_count, heap.free_count );
if( heap.first->next == NULL )
+ {
mbedtls_fprintf( stderr, "All memory de-allocated in stack buffer\n" );
+ }
else
{
mbedtls_fprintf( stderr, "Memory currently allocated:\n" );