Avoid bug in VAX assembler. But i don't know what is happening.
authorceriel <none@none>
Wed, 28 Jan 1987 16:22:30 +0000 (16:22 +0000)
committerceriel <none@none>
Wed, 28 Jan 1987 16:22:30 +0000 (16:22 +0000)
lang/cem/libcc/gen/malloc.c

index aa23cd6..4e7d4dd 100644 (file)
@@ -46,7 +46,7 @@ unsigned size;
 
   if ((p = bottom) == 0) {
        top = bottom = p = sbrk(sizeof(char *));
-       NEXT(top) = 0;
+       NEXT(p) = 0;
   }
   while ((next = NEXT(p)) != 0)
        if ((vir_bytes) next & BUSY)                    /* already in use */