From f5d4886d34b733fba3ca10a7250e6a03bc019a17 Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Sun, 27 Oct 1991 23:59:26 -0800 Subject: [PATCH] Minor fixes SCCS-vsn: bin/csh/alloc.c 5.11 --- usr/src/bin/csh/alloc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/usr/src/bin/csh/alloc.c b/usr/src/bin/csh/alloc.c index f189bf6b44..de6ec89240 100644 --- a/usr/src/bin/csh/alloc.c +++ b/usr/src/bin/csh/alloc.c @@ -6,7 +6,7 @@ */ #ifndef lint -static char sccsid[] = "@(#)alloc.c 5.10 (Berkeley) %G%"; +static char sccsid[] = "@(#)alloc.c 5.11 (Berkeley) %G%"; #endif /* not lint */ /* @@ -213,8 +213,6 @@ morecore(bucket) /* take 2k unless the block is bigger than that */ rnu = (bucket <= 8) ? 11 : bucket + 3; nblks = 1 << (rnu - (bucket + 3)); /* how many blocks to get */ - if (rnu < bucket) - rnu = bucket; memtop = (char *) sbrk(1 << rnu); /* PWP */ op = (union overhead *) memtop; memtop += 1 << rnu; @@ -238,6 +236,7 @@ morecore(bucket) op->ov_next = (union overhead *) (((caddr_t) op) + siz); op = (union overhead *) (((caddr_t) op) + siz); } + op->ov_next = NULL; } #endif -- 2.20.1