Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Aug 1998 02:07:35 +0100
From:      Brian Somers <brian@Awfulhak.org>
To:        Archie Cobbs <archie@whistle.com>
Cc:        nate@mt.sri.com (Nate Williams), imp@village.org, hackers@FreeBSD.ORG
Subject:   Re: Realloc fix for review 
Message-ID:  <199808210107.CAA13727@awfulhak.org>
In-Reply-To: Your message of "Thu, 20 Aug 1998 17:36:27 PDT." <199808210036.RAA11189@bubba.whistle.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> This code is correct. Even if any combination of { a, na } are NULL,
> the code is still valid.

AFAIK not all free() implementations ignore a NULL pointer (although 
FreeBSD's does).  But then, not all realloc() implementations allow a 
NULL either (FreeBSD's does) :-/

> -Archie
> 
> ___________________________________________________________________________
> Archie Cobbs   *   Whistle Communications, Inc.  *   http://www.whistle.com

-- 
Brian <brian@Awfulhak.org>, <brian@FreeBSD.org>, <brian@OpenBSD.org>
      <http://www.Awfulhak.org>;
Don't _EVER_ lose your sense of humour....



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199808210107.CAA13727>