Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 01 Mar 2004 13:24:07 +0100
From:      des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=)
To:        Poul-Henning Kamp <phk@FreeBSD.org>
Cc:        freebsd-standards@FreeBSD.org
Subject:   Re: standards/62858: malloc(0) not C99 compliant
Message-ID:  <xzpznb0iwm0.fsf@dwp.des.no>
In-Reply-To: <200402291048.i1TAmnCt060370@freefall.freebsd.org> (Poul-Henning Kamp's message of "Sun, 29 Feb 2004 02:48:49 -0800 (PST)")
References:  <200402291048.i1TAmnCt060370@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Poul-Henning Kamp <phk@FreeBSD.org> writes:
> This is a deliberate choice.  Handling zero-size pointers correctly
> in malloc(3) would be a rather involved and is currently not high
> on the todolist.  A good patch might change that.

The standard does allow returning NULL, you know.

DES
--=20
Dag-Erling Sm=F8rgrav - des@des.no



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpznb0iwm0.fsf>