From owner-freebsd-stable Tue Oct 16 9:50:10 2001 Delivered-To: freebsd-stable@freebsd.org Received: from ece.cmu.edu (ECE.CMU.EDU [128.2.136.200]) by hub.freebsd.org (Postfix) with ESMTP id 067FE37B409 for ; Tue, 16 Oct 2001 09:50:05 -0700 (PDT) Received: from hilfy.ece.cmu.edu (HILFY.ECE.CMU.EDU [128.2.136.133]) (authenticated) by ece.cmu.edu (8.11.0/8.10.2) with ESMTP id f9GGnvl10311; Tue, 16 Oct 2001 12:49:57 -0400 (EDT) Date: Tue, 16 Oct 2001 12:49:10 -0400 From: "Brandon S. Allbery KF8NH" To: Nate Williams Cc: freebsd-stable@FreeBSD.ORG Subject: Re: setenv() cores with NULL value [was Re: Gdm proplem on 4.4] Message-ID: <5190000.1003250950@hilfy.ece.cmu.edu> In-Reply-To: <15308.25432.608079.646993@nomad.yogotech.com> References: <200110160353.f9G3rO728525@harmony.village.org> <20011016013834.E293@blossom.cjclark.org> <200110161002.f9GA2CA08544@shalimar.net.au> <15308.25432.608079.646993@nomad.yogotech.com> X-Mailer: Mulberry/2.1.0 (SunOS/SPARC) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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, 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.) -- brandon s. allbery [os/2][linux][solaris][freebsd] allbery@kf8nh.apk.net system administrator [JAPH][WAY too many hats] allbery@ece.cmu.edu electrical and computer engineering KF8NH carnegie mellon university [linux: proof of the million monkeys theory] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message