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;
|
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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue