# HG changeset patch # User YAMAMOTO Mitsuharu # Date 1176692973 0 # Node ID a6fbfb6a05808504e8a24487dbc7f8855c535adb # Parent e1cbde0582296c0ffd3f41a28295be7909b8524b (mem_insert): Set min_heap_address and max_heap_address if they are not yet initialized. diff -r e1cbde058229 -r a6fbfb6a0580 src/alloc.c --- a/src/alloc.c Mon Apr 16 02:57:52 2007 +0000 +++ b/src/alloc.c Mon Apr 16 03:09:33 2007 +0000 @@ -3615,9 +3615,9 @@ { struct mem_node *c, *parent, *x; - if (start < min_heap_address) + if (min_heap_address == NULL || start < min_heap_address) min_heap_address = start; - if (end > max_heap_address) + if (max_heap_address == NULL || end > max_heap_address) max_heap_address = end; /* See where in the tree a node for START belongs. In this