summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2006-11-08 20:40:10 +0000
committerHisham Muhammad <hisham@gobolinux.org>2006-11-08 20:40:10 +0000
commitc4fbd7fc8bc34b33e2df84fe3c65ab145e1a1f25 (patch)
tree48259a377e5f15c4f348fb98e9a9f5e50e4de25a
parentfebe259e912b3f2dbd4b8c9e2fc6c5912938708e (diff)
Assign creation of the allocation log file to a separate #define.
-rw-r--r--DebugMemory.c4
1 files changed, 4 insertions, 0 deletions
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;
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy