Commit c4fbd7fc authored by Hisham Muhammad's avatar Hisham Muhammad
Browse files

Assign creation of the allocation log file to a separate #define.

parent febe259e
...@@ -49,7 +49,11 @@ void DebugMemory_new() { ...@@ -49,7 +49,11 @@ void DebugMemory_new() {
singleton->allocations = 0; singleton->allocations = 0;
singleton->deallocations = 0; singleton->deallocations = 0;
singleton->size = 0; singleton->size = 0;
#ifdef DEBUG_ALLOC
singleton->file = fopen("/tmp/htop-debug-alloc.txt", "w"); singleton->file = fopen("/tmp/htop-debug-alloc.txt", "w");
#else
singleton->file = NULL;
#endif
singleton->totals = true; singleton->totals = true;
//singleton->file = NULL; //singleton->file = NULL;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment