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: Markus Armbruster
Subject: [Qemu-devel] Re: [PATCH] Make qemu_alloc()/qemu_realloc() return NULL for size==0
Date: Wed, 20 May 2009 11:30:34 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux)

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.




reply via email to

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