diff options
author | Richard Stallman <rms@gnu.org> | 1993-09-27 23:56:36 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1993-09-27 23:56:36 +0000 |
commit | a1c3672f1295e35976b874e4922186e1ea5fb24d (patch) | |
tree | 3e82f4511126467a6cbc1404d5a6ae55ce16b35a | |
parent | cd7fd6820c6eb32c9f0fc7f6c4b7967c786801cb (diff) | |
download | gcc-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.c | 2 |
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) { |