From: Jeff King Date: Thu, 06 Sep 2007 14:52:44 GMT Subject: Re: [PATCH 1/7] Rework strbuf API and semantics. Message-ID: <20070906145244.GB3546@coredump.intra.peff.net> In-Reply-To: <85bqcfdfc7.fsf@lola.goethe.zz> On Thu, Sep 06, 2007 at 04:43:36PM +0200, David Kastrup wrote: > > Would not "struct strbuf sb = { 0 };" have the same effect? (I am not so > > standards-keen as other people, who I have no doubt will gladly answer > > this one.) > > AFAIR, non-specified static memory areas are initialized to zero bits, > and NULL resp (void *)0 is not guaranteed to be represented by zero > bits. You are right that the NULL pointer is not necessarily represented as zero bits, but static pointers are explicitly initialized to the NULL pointer (not all-bits-zero). -Peff