collect2.c patch fix typo in xrealloc

Graham grahams@rcp.co.uk
Mon Feb 8 05:03:00 GMT 1999


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


More information about the Gcc-patches mailing list