summaryrefslogtreecommitdiff
path: root/libdm/mm
diff options
context:
space:
mode:
Diffstat (limited to 'libdm/mm')
-rw-r--r--libdm/mm/dbg_malloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libdm/mm/dbg_malloc.c b/libdm/mm/dbg_malloc.c
index a2a6b769f..e26f05eef 100644
--- a/libdm/mm/dbg_malloc.c
+++ b/libdm/mm/dbg_malloc.c
@@ -205,7 +205,6 @@ int dm_dump_memory_debug(void)
unsigned long tot = 0;
struct memblock *mb;
char str[32];
- size_t c;
if (_head)
log_very_verbose("You have a memory leak:");
@@ -218,6 +217,8 @@ int dm_dump_memory_debug(void)
*/
str[0] = '\0';
#else
+ size_t c;
+
for (c = 0; c < sizeof(str) - 1; c++) {
if (c >= mb->length)
str[c] = ' ';