Added test for outcome of request for more core.
authorkeie <none@none>
Mon, 21 Jan 1985 23:48:06 +0000 (23:48 +0000)
committerkeie <none@none>
Mon, 21 Jan 1985 23:48:06 +0000 (23:48 +0000)
If no more core is available a fatal error message is produced.

lang/basic/src.old/util.c

index bf9fcad..7ef314d 100644 (file)
@@ -66,6 +66,7 @@ unsigned length;
        char *s,*c;
        extern char *malloc() ;
        s=c= malloc(length);
+       if ( !s ) fatal("Out of memory") ;
        while(length--)*c++ =0;
        return(s);
 }