From: Holger Lubitz Date: Fri, 6 Jul 2007 19:08:21 +0000 (+0200) Subject: convert to zalloc X-Git-Tag: v0.9.3~260 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ccb6f9dc6a1fc50f4cae8d3c886494e7e8e3240;p=thirdparty%2Fipxe.git convert to zalloc --- diff --git a/src/core/image.c b/src/core/image.c index 08a129ffa..04bd08394 100644 --- a/src/core/image.c +++ b/src/core/image.c @@ -62,9 +62,8 @@ static void free_image ( struct refcnt *refcnt ) { struct image * alloc_image ( void ) { struct image *image; - image = malloc ( sizeof ( *image ) ); + image = zalloc ( sizeof ( *image ) ); if ( image ) { - memset ( image, 0, sizeof ( *image ) ); image->refcnt.free = free_image; } return image;