aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-09-27 23:56:36 +0000
committerRichard Stallman <rms@gnu.org>1993-09-27 23:56:36 +0000
commita1c3672f1295e35976b874e4922186e1ea5fb24d (patch)
tree3e82f4511126467a6cbc1404d5a6ae55ce16b35a
parentcd7fd6820c6eb32c9f0fc7f6c4b7967c786801cb (diff)
downloadgcc-a1c3672f1295e35976b874e4922186e1ea5fb24d.zip
gcc-a1c3672f1295e35976b874e4922186e1ea5fb24d.tar.gz
gcc-a1c3672f1295e35976b874e4922186e1ea5fb24d.tar.bz2
(xrealloc): Handle 0 passed as BLOCK.
From-SVN: r5492
-rw-r--r--gcc/bi-lexer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/bi-lexer.c b/gcc/bi-lexer.c
index 954638a..7bfc57e 100644
--- a/gcc/bi-lexer.c
+++ b/gcc/bi-lexer.c
@@ -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)
{