From 3904aa6bf1f8cc3365060afdbed18d112966ca00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sun, 29 Sep 2002 02:24:42 +0000 Subject: [PATCH] Shouldn't do anything so late; just fixed another bug in the wall code. Commit early, commit often, they say... git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1263 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/core/heap.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/kernel/core/heap.c b/src/kernel/core/heap.c index 83c611881e..ab21a7aca8 100644 --- a/src/kernel/core/heap.c +++ b/src/kernel/core/heap.c @@ -284,7 +284,11 @@ out: TRACE(("kmalloc: asked to allocate size %d, returning ptr = %p\n", size, address)); #if PARANOID_KMALLOC - memset(address,0xCC,size); + memset(address, 0xCC, size); +#endif + +#if PARANOID_POINTER_CHECK + ptrchecklist_store(address); #endif #if USE_WALL @@ -304,10 +308,6 @@ out: } #endif -#if PARANOID_POINTER_CHECK - ptrchecklist_store(address); -#endif - return address; }