This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

collect2.c patch fix typo in xrealloc


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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]