summaryrefslogtreecommitdiff
path: root/src/common/malloc.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-30 17:30:20 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-02 12:37:52 +0300
commit397c357c13775d4e2375132129e830b86a7d049f (patch)
tree2be299a5302b105d3a4cc9fec3a449e100c8fcdb /src/common/malloc.c
parent15a1e42cb2a8513e61d5c0039a86ee964976325b (diff)
downloadhercules-397c357c13775d4e2375132129e830b86a7d049f.tar.gz
hercules-397c357c13775d4e2375132129e830b86a7d049f.tar.bz2
hercules-397c357c13775d4e2375132129e830b86a7d049f.tar.xz
hercules-397c357c13775d4e2375132129e830b86a7d049f.zip
Fix compilation without memory manager.
configure example: ./configure --enable-manager=no
Diffstat (limited to 'src/common/malloc.c')
-rw-r--r--src/common/malloc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/malloc.c b/src/common/malloc.c
index 625875b76..244b1114c 100644
--- a/src/common/malloc.c
+++ b/src/common/malloc.c
@@ -822,8 +822,10 @@ void malloc_final (void) {
}
void malloc_init (void) {
+#ifdef USE_MEMMGR
memmgr_usage_bytes_t = 0;
memmgr_usage_bytes = 0;
+#endif
#if defined(DMALLOC) && defined(CYGWIN)
// http://dmalloc.com/docs/latest/online/dmalloc_19.html
dmalloc_debug_setup(getenv("DMALLOC_OPTIONS"));