From ea0d7e8b63d0e38200debe084543a951753b28c7 Mon Sep 17 00:00:00 2001 From: Graham Stott Date: Mon, 8 Feb 1999 03:31:34 -0800 Subject: [PATCH] * collect2.c (xrealloc): fix typo in last change. From-SVN: r25079 --- gcc/ChangeLog | 4 ++++ gcc/collect2.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ad5fc1ae56f..2aedf3557e8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Mon Feb 8 11:34:44 1999 Graham + + * 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 9a538af9a7a..f144480411d 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); -- 2.30.2