From: Mike Frysinger Date: Thu, 21 Oct 2010 17:27:38 -0400 Subject: [U-Boot] [PATCH] Prevent malloc with size 0 In-Reply-To: <4CC0AC47.9040101@gmail.com> References: <4CC006B1.8000905@intracomdefense.com> <201010211551.58419.vapier@gentoo.org> <4CC0AC47.9040101@gmail.com> Message-ID: <201010211727.39382.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thursday, October 21, 2010 17:10:31 Graeme Russ wrote: > On 22/10/10 06:51, Mike Frysinger wrote: > > have u-boot return an error. > > Is NULL what you consider to be an error yes > Besides, is not free(NULL) valid (does nothing) as well? yes, free(NULL) should work fine per POSIX -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20101021/f5390fbc/attachment.pgp