public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08c8edf
)
Added test for outcome of request for more core.
author
keie
<none@none>
Mon, 21 Jan 1985 23:48:06 +0000
(23:48 +0000)
committer
keie
<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
patch
|
blob
|
history
diff --git
a/lang/basic/src.old/util.c
b/lang/basic/src.old/util.c
index
bf9fcad
..
7ef314d
100644
(file)
--- a/
lang/basic/src.old/util.c
+++ b/
lang/basic/src.old/util.c
@@
-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);
}