Added test for outcome of request for more core.

If no more core is available a fatal error message is produced.
This commit is contained in:
keie 1985-01-21 23:48:06 +00:00
parent 08c8edf314
commit 5fc9fdf795

View file

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