Date: Tue, 16 Oct 2001 12:49:10 -0400 From: "Brandon S. Allbery KF8NH" <allbery@ece.cmu.edu> To: Nate Williams <nate@yogotech.com> 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> <Pine.LNX.4.33.0110152249220.8479-100000@organ.cs.byu.edu> <20011016013834.E293@blossom.cjclark.org> <200110161002.f9GA2CA08544@shalimar.net.au> <15308.25432.608079.646993@nomad.yogotech.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday, October 16, 2001 10:42:00 -0600, Nate Williams <nate@yogotech.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5190000.1003250950>