* toplev.c (xmalloc): Only give the fatal msg if SIZE is non-zero.
From-SVN: r14261
This commit is contained in:
parent
e1c8c76b5b
commit
809d135d88
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user