From owner-freebsd-stable Tue Oct 16 22:11:29 2001 Delivered-To: freebsd-stable@freebsd.org Received: from Mail6.nc.rr.com (fe6.southeast.rr.com [24.93.67.53]) by hub.freebsd.org (Postfix) with ESMTP id 346F437B40E for ; Tue, 16 Oct 2001 22:11:21 -0700 (PDT) Received: from i8k.babbleon.org ([66.57.85.154]) by Mail6.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Wed, 17 Oct 2001 00:17:41 -0400 Content-Type: text/plain; charset="iso-8859-1" From: Brian T.Schellenberger To: "Brandon S. Allbery KF8NH" , Nate Williams Subject: Re: setenv() cores with NULL value [was Re: Gdm proplem on 4.4] Date: Wed, 17 Oct 2001 00:17:37 -0400 X-Mailer: KMail [version 1.2] Cc: freebsd-stable@FreeBSD.ORG References: <200110160353.f9G3rO728525@harmony.village.org> <15308.25432.608079.646993@nomad.yogotech.com> <5190000.1003250950@hilfy.ece.cmu.edu> In-Reply-To: <5190000.1003250950@hilfy.ece.cmu.edu> MIME-Version: 1.0 Message-Id: <01101700173701.00543@i8k.babbleon.org> Content-Transfer-Encoding: 8bit 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 Tuesday 16 October 2001 12:49, Brandon S. Allbery KF8NH wrote: > On Tuesday, October 16, 2001 10:42:00 -0600, Nate Williams > wrote: > +----- > > | printf("%s", ""); > | printf("%s", NULL); > | > | The first will work, the second will dump core. The second has never > | worked, and should never work. > > +--->8 > > FWIW, Xenix's printf() would print "(null)" in the second case. (Not that > this should be an argument for it being acceptable.) . . . and on the VAX, there was a system option (CPU bit) for whether reading from the zero page gave a zero or a violation . . . but this is again just history . . . aand what is this discussion doing in stable anyway? -- Brian T. Schellenberger . . . . . . . bts@wnt.sas.com (work) Brian, the man from Babble-On . . . . bts@babbleon.org (personal) http://www.babbleon.org -------> Free Dmitry Sklyarov! (let him go home) <----------- http://www.eff.org http://www.programming-freedom.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message