(mALLOC_STATs): Put declaration in correct place.
authordrepper <drepper>
Tue, 8 Apr 1997 23:20:58 +0000 (23:20 +0000)
committerdrepper <drepper>
Tue, 8 Apr 1997 23:20:58 +0000 (23:20 +0000)
malloc/malloc.c

index cb5e73f..f86d2df 100644 (file)
@@ -3692,8 +3692,9 @@ void mALLOC_STATs()
 #endif
 #if !defined(NO_THREADS) && MALLOC_DEBUG > 1
     if(ar_ptr != &main_arena) {
+      heap_info *heap;
       (void)mutex_lock(&ar_ptr->mutex);
-      heap_info *heap = heap_for_ptr(top(ar_ptr));
+      heap = heap_for_ptr(top(ar_ptr));
       while(heap) { dump_heap(heap); heap = heap->prev; }
       (void)mutex_unlock(&ar_ptr->mutex);
     }