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:
parent
08c8edf314
commit
5fc9fdf795
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user