david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

convert to zalloc

This commit is contained in:
Holger Lubitz 2007-06-18 01:24:41 +02:00
parent c7549bcebe
commit 6d0332b5b3
1 changed files with 1 additions and 2 deletions

View File

@ -261,10 +261,9 @@ int create_downloader ( struct job_interface *job, struct image *image,
int rc;
/* Allocate and initialise structure */
downloader = malloc ( sizeof ( *downloader ) );
downloader = zalloc ( sizeof ( *downloader ) );
if ( ! downloader )
return -ENOMEM;
memset ( downloader, 0, sizeof ( *downloader ) );
downloader->refcnt.free = downloader_free;
job_init ( &downloader->job, &downloader_job_operations,
&downloader->refcnt );