This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
collect2.c patch fix typo in xrealloc
- To: egcs-patches at egcs dot cygnus dot com
- Subject: collect2.c patch fix typo in xrealloc
- From: Graham <grahams at rcp dot co dot uk>
- Date: Mon, 08 Feb 1999 13:01:51 +0000
- Reply-To: grahams at rcp dot co dot uk
Hi
Here's a patch to fix a type in rth's xrealloc patches.
Graham
Changelog
* collect2.c (xrealloc): fix typo in last change.
*** collect2.c.orig Mon Feb 8 13:47:40 1999
--- collect2.c Mon Feb 8 13:51:13 1999
*************** xrealloc (old, size)
*** 553,559 ****
size_t size;
{
register PTR ptr;
! if (ptr)
ptr = (PTR) realloc (old, size);
else
ptr = (PTR) malloc (size);
--- 553,559 ----
size_t size;
{
register PTR ptr;
! if (old)
ptr = (PTR) realloc (old, size);
else
ptr = (PTR) malloc (size);