Commit a1c3672f by Richard Stallman

(xrealloc): Handle 0 passed as BLOCK.

From-SVN: r5492
parent cd7fd682
......@@ -56,7 +56,7 @@ xrealloc (block, nbytes)
char *block;
int nbytes;
{
char *tmp = realloc (block, nbytes);
char *tmp = block ? realloc (block, nbytes) : malloc (nbytes);
if (!tmp)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment