diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-09-01 12:58:46 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-09-01 12:58:46 +0400 |
commit | fe427f056186d6ac932d075c58f522e878ae6536 (patch) | |
tree | 995f3d61918c176af331019abf7cb06ba70d819a /intern/guardedalloc | |
parent | 3c193c825becab6a2baa72f63c9c5f242e15ecc5 (diff) |
kd-tree,
- replace numbers with defines for allocation increments and default array size.
- move array reallocation into a static function (deduplicate 2x).
also fix own mistake with uninitialized slop-space var in memory printing statistics.
Diffstat (limited to 'intern/guardedalloc')
-rw-r--r-- | intern/guardedalloc/intern/mallocn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/guardedalloc/intern/mallocn.c b/intern/guardedalloc/intern/mallocn.c index 380ca98ba27..8fa9cb90c8e 100644 --- a/intern/guardedalloc/intern/mallocn.c +++ b/intern/guardedalloc/intern/mallocn.c @@ -640,7 +640,7 @@ void MEM_printmemlist_stats(void) MemPrintBlock *pb, *printblock; unsigned int totpb, a, b; #ifdef HAVE_MALLOC_H - size_t mem_in_use_slop; + size_t mem_in_use_slop = 0; #endif mem_lock_thread(); |