[U-Boot] [PATCH] Prevent malloc with size 0

Mike Frysinger
2010-10-21T21:27:38Z

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