From owner-freebsd-hackers Thu Aug 20 20:01:21 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA19300 for freebsd-hackers-outgoing; Thu, 20 Aug 1998 20:01:21 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.force9.co.uk [195.166.136.63]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA19293 for ; Thu, 20 Aug 1998 20:01:17 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from gate.lan.awfulhak.org (brian@localhost [127.0.0.1]) by awfulhak.org (8.8.8/8.8.8) with ESMTP id CAA13727; Fri, 21 Aug 1998 02:07:38 +0100 (BST) (envelope-from brian@gate.lan.awfulhak.org) Message-Id: <199808210107.CAA13727@awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: Archie Cobbs cc: nate@mt.sri.com (Nate Williams), imp@village.org, hackers@FreeBSD.ORG Subject: Re: Realloc fix for review In-reply-to: Your message of "Thu, 20 Aug 1998 17:36:27 PDT." <199808210036.RAA11189@bubba.whistle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 21 Aug 1998 02:07:35 +0100 From: Brian Somers Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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 , , 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