diff options
author | Graham Stott <grahams@rcp.co.uk> | 1999-02-08 03:31:34 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 1999-02-08 03:31:34 -0800 |
commit | ea0d7e8b63d0e38200debe084543a951753b28c7 (patch) | |
tree | 90e0a160512342f904ff133a40398fd9ae7bfb10 /gcc | |
parent | acd663ee8d130f87133566064f02b94bedcea9d4 (diff) | |
download | gcc-ea0d7e8b63d0e38200debe084543a951753b28c7.zip gcc-ea0d7e8b63d0e38200debe084543a951753b28c7.tar.gz gcc-ea0d7e8b63d0e38200debe084543a951753b28c7.tar.bz2 |
* collect2.c (xrealloc): fix typo in last change.
From-SVN: r25079
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/collect2.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ad5fc1a..2aedf35 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Mon Feb 8 11:34:44 1999 Graham <grahams@rcp.co.uk> + + * collect2.c (xrealloc): fix typo in last change. + Mon Feb 8 09:13:38 PST 1999 Jeff Law (law@cygnus.com) * version.c: Bump for snapshot. diff --git a/gcc/collect2.c b/gcc/collect2.c index 9a538af..f144480 100644 --- a/gcc/collect2.c +++ b/gcc/collect2.c @@ -553,7 +553,7 @@ xrealloc (old, size) size_t size; { register PTR ptr; - if (ptr) + if (old) ptr = (PTR) realloc (old, size); else ptr = (PTR) malloc (size); |