projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1c8c76
)
* toplev.c (xmalloc): Only give the fatal msg if SIZE is non-zero.
author
Brendan Kehoe
<brendan@gcc.gnu.org>
Thu, 19 Jun 1997 18:56:47 +0000
(14:56 -0400)
committer
Brendan Kehoe
<brendan@gcc.gnu.org>
Thu, 19 Jun 1997 18:56:47 +0000
(14:56 -0400)
From-SVN: r14261
gcc/toplev.c
patch
|
blob
|
history
diff --git
a/gcc/toplev.c
b/gcc/toplev.c
index 855aaca571f1ceed4d3173989b2c550ec05ac776..eb6f14bf9d1539cd6cc0dfdc4c3902104e859559 100644
(file)
--- a/
gcc/toplev.c
+++ b/
gcc/toplev.c
@@
-1827,7
+1827,7
@@
xmalloc (size)
unsigned size;
{
register char *value = (char *) malloc (size);
- if (value == 0)
+ if (value == 0
&& size != 0
)
fatal ("virtual memory exhausted");
return value;
}