* toplev.c (xmalloc): Only give the fatal msg if SIZE is non-zero.

From-SVN: r14261
This commit is contained in:
Brendan Kehoe 1997-06-19 14:56:47 -04:00
parent e1c8c76b5b
commit 809d135d88

View File

@ -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;
}