From fe427f056186d6ac932d075c58f522e878ae6536 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 1 Sep 2013 08:58:46 +0000 Subject: 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. --- intern/guardedalloc/intern/mallocn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'intern/guardedalloc') 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(); -- cgit v1.2.3