From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Sat, 31 Mar 2012 21:59:22 +0200 Subject: [U-Boot] [PATCH] Prevent malloc with size 0 In-Reply-To: <201010211727.39382.vapier@gentoo.org> References: <4CC006B1.8000905@intracomdefense.com> <4CC0AC47.9040101@gmail.com> <201010211727.39382.vapier@gentoo.org> Message-ID: <201203312159.22468.marek.vasut@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Mike Frysinger, > 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 Well then, this patch wasn't accepted yet and I consider it OK to apply. Any objections? Best regards, Marek Vasut