aboutsummaryrefslogtreecommitdiffstats
path: root/DebugMemory.c
diff options
context:
space:
mode:
authorBartosz Fenski <fenio@debian.org>2007-09-15 14:37:41 +0200
committerDaniel Lange <DLange@git.local>2016-04-11 13:00:22 +0200
commit6e3bbb32d3cd1c09b0d1a79c433e0728a7ea44f4 (patch)
tree4e5660f891b09b7755a97a75edefdd167365e336 /DebugMemory.c
parent8ae888dfb193b86560b4d874767c347bf2be8097 (diff)
parent9675cf654d86464344e56705db7a71ea17f76c6f (diff)
downloaddebian_htop-6e3bbb32d3cd1c09b0d1a79c433e0728a7ea44f4.tar.gz
debian_htop-6e3bbb32d3cd1c09b0d1a79c433e0728a7ea44f4.tar.bz2
debian_htop-6e3bbb32d3cd1c09b0d1a79c433e0728a7ea44f4.zip
Imported Debian patch 0.6.6+svn20070915-1debian/0.6.6+svn20070915-1
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