Date: Thu, 29 Jun 2006 18:56:29 +0200 From: joerg@britannica.bec.de To: freebsd-hackers@freebsd.org Subject: Re: Return value of malloc(0) Message-ID: <20060629165629.GA6875@britannica.bec.de> In-Reply-To: <805AA34B676EDF411B3CF548@Zelazny> References: <20060628181045.GA54915@curry.mchp.siemens.de> <20060628212956.GI822@wombat.fafoe.narf.at> <805AA34B676EDF411B3CF548@Zelazny>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jun 29, 2006 at 11:44:23AM -0400, Pat Lashley wrote: > No, our implementation is NOT legal. We always return the SAME value. To > be legal, we should not return that value again unless it has been > free()-ed. It is legal due to brain damaged definition of implementation defined behaviour, but it violates the spirit of the standard :-) Joerg
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060629165629.GA6875>