aboutsummaryrefslogtreecommitdiffstats
path: root/DebugMemory.c
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2016-04-11 13:00:21 +0200
committerDaniel Lange <DLange@git.local>2016-04-11 13:00:21 +0200
commit9675cf654d86464344e56705db7a71ea17f76c6f (patch)
tree86077a344c002694db7ba4f7295d8a64b3601258 /DebugMemory.c
parent85bb4ad9cb820ac3b8e935a930084a06cbfd2847 (diff)
downloaddebian_htop-9675cf654d86464344e56705db7a71ea17f76c6f.tar.gz
debian_htop-9675cf654d86464344e56705db7a71ea17f76c6f.tar.bz2
debian_htop-9675cf654d86464344e56705db7a71ea17f76c6f.zip
Imported Upstream version 0.6.6+svn20070915upstream/0.6.6+svn20070915
Diffstat (limited to 'DebugMemory.c')
-rw-r--r--DebugMemory.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/DebugMemory.c b/DebugMemory.c
index 1ef740d..da2bf62 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