aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/alloc.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index d7ed5465bc5..999f6106e67 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12007-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2
3 * alloc.c (mem_insert): Set min_heap_address and max_heap_address
4 if they are not yet initialized.
5
12007-04-15 Chong Yidong <cyd@stupidchicken.com> 62007-04-15 Chong Yidong <cyd@stupidchicken.com>
2 7
3 * xdisp.c (redisplay_window): When deciding whether or not to 8 * xdisp.c (redisplay_window): When deciding whether or not to
diff --git a/src/alloc.c b/src/alloc.c
index 5cf22eb62e7..68b490f98b5 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -3615,9 +3615,9 @@ mem_insert (start, end, type)
3615{ 3615{
3616 struct mem_node *c, *parent, *x; 3616 struct mem_node *c, *parent, *x;
3617 3617
3618 if (start < min_heap_address) 3618 if (min_heap_address == NULL || start < min_heap_address)
3619 min_heap_address = start; 3619 min_heap_address = start;
3620 if (end > max_heap_address) 3620 if (max_heap_address == NULL || end > max_heap_address)
3621 max_heap_address = end; 3621 max_heap_address = end;
3622 3622
3623 /* See where in the tree a node for START belongs. In this 3623 /* See where in the tree a node for START belongs. In this