From c4fbd7fc8bc34b33e2df84fe3c65ab145e1a1f25 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Wed, 8 Nov 2006 20:40:10 +0000 Subject: Assign creation of the allocation log file to a separate #define. --- DebugMemory.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/DebugMemory.c b/DebugMemory.c index 1ef740dd..da2bf624 100644 --- a/DebugMemory.c +++ b/DebugMemory.c @@ -49,7 +49,11 @@ void DebugMemory_new() { singleton->allocations = 0; singleton->deallocations = 0; singleton->size = 0; + #ifdef DEBUG_ALLOC singleton->file = fopen("/tmp/htop-debug-alloc.txt", "w"); + #else + singleton->file = NULL; + #endif singleton->totals = true; //singleton->file = NULL; } -- cgit v1.2.3