david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

convert to zalloc

This commit is contained in:
Holger Lubitz 2007-07-06 21:08:21 +02:00
parent da3c785816
commit 1ccb6f9dc6
1 changed files with 1 additions and 2 deletions

View File

@ -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;