From 1ccb6f9dc6a1fc50f4cae8d3c886494e7e8e3240 Mon Sep 17 00:00:00 2001 From: Holger Lubitz Date: Fri, 6 Jul 2007 21:08:21 +0200 Subject: [PATCH] convert to zalloc --- src/core/image.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/image.c b/src/core/image.c index 08a129ff..04bd0839 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;