qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH] Make qemu_alloc()/qemu_realloc() return NULL fo


From: malc
Subject: [Qemu-devel] Re: [PATCH] Make qemu_alloc()/qemu_realloc() return NULL for size==0
Date: Wed, 20 May 2009 22:20:16 +0400 (MSD)

On Wed, 20 May 2009, Markus Armbruster wrote:

> malc <address@hidden> writes:
> 
> [Debate snipped...]
> > never return NULL. I've commited the thing i had in mind.
> 
> Arguing this case has been a waste of time, for which I apologize.  I'll
> try not to do that again.
> 
> > [..snip..]
> >
> > P.S. It probably says something about my experience in the field, but the
> >      only time i've encountered real-life usage of malloc(0) is in
> >      that qcow2 case, the code was produced by a programmer who among
> >      (numerous) other things wrote full C compiler and won IOCCC
> >      twice, yet even his code failed to work.
> 
> Read more code then, and more varied code.

Any suggested reading? 

-- 
mailto:address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]