From owner-freebsd-stable Wed Oct 17 10:54:31 2001 Delivered-To: freebsd-stable@freebsd.org Received: from freeway.dcfinc.com (cx74889-a.phnx3.az.home.com [24.1.193.157]) by hub.freebsd.org (Postfix) with ESMTP id D9F9237B401 for ; Wed, 17 Oct 2001 10:54:20 -0700 (PDT) Received: (from chad@localhost) by freeway.dcfinc.com (8.8.8/8.8.8) id KAA26689; Wed, 17 Oct 2001 10:53:42 -0700 (MST) (envelope-from chad) Date: Wed, 17 Oct 2001 10:53:42 -0700 From: "Chad R. Larson" To: Gregory Bond Cc: Zero Sum , Greg Black , cjclark@alum.mit.edu, "Crist J. Clark" , Heath Nielson , Warner Losh , David Marker , freebsd-stable@FreeBSD.ORG Subject: Re: setenv() cores with NULL value [was Re: Gdm proplem on 4.4] Message-ID: <20011017105342.A26621@freeway.dcfinc.com> References: <200110170533.PAA22928@lightning.itga.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200110170533.PAA22928@lightning.itga.com.au>; from gnb@itga.com.au on Wed, Oct 17, 2001 at 03:33:49PM +1000 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Oct 17, 2001 at 03:33:49PM +1000, Gregory Bond wrote: > Dereferencing NULL pointers has been illegal C since the day C was > invented. See if you can dig up K&R 1st edition (I've lost mine over > the years...) So, I'm more of a packrat than you. Quoting from K&R first edition (the white book [which in my case is tending toward yellow...]) chapter 5 "Pointers and Arrays" we get A pointer is a variable that contains the address of another variable. ... C guarantees that no pointer that validly points to data will contain zero ... We write NULL instead of zero, however, to indicate more clearly that this is a special value for a pointer. Can we be done with this now? Or move to chat? -crl -- Chad R. Larson (CRL15) 602-953-1392 Brother, can you paradigm? chad@dcfinc.com chad@larsons.org larson1@home.com DCF, Inc. - 14623 North 49th Place, Scottsdale, Arizona 85254-2207 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message