rc

[fork] interactive rc shell
Log | Files | Refs | README | LICENSE

commit 858f712a8ce34406195cb525c32f42e1d03e53f9
parent 3cd08d6119446034f93b6e66175dcfc7c273cb66
Author: tjg <tjg>
Date:   Fri, 12 Oct 2001 09:19:24 +0000

make the assertion live

Diffstat:
Mnalloc.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/nalloc.c b/nalloc.c @@ -50,7 +50,8 @@ extern void *nalloc(size_t n) { ulp->used = base + n; return &ulp->mem[base]; } else { - getblock(n); /* assert(ul->used) == 0 */ + getblock(n); + assert(ul->used == 0); (ulp = ul)->used = n; return &ulp->mem[0]; }