[Spice-devel] [PATCH] Prefer malloc() over calloc()

Zeeshan Ali (Khattak) zeeshanak at gnome.org
Wed May 18 13:41:02 PDT 2011


On Wed, May 18, 2011 at 11:38 PM, Zeeshan Ali (Khattak)
<zeeshanak at gnome.org> wrote:
> When only 1 element needs to be allocated, calloc() only makes the code
> *slightly* less readable.

  Please ignore this patch. I forgot that calloc also zero's out the memory.

-- 
Regards,

Zeeshan Ali (Khattak)
FSF member#5124


More information about the Spice-devel mailing list