david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

convert to zalloc

This commit is contained in:
Holger Lubitz 2007-06-18 01:25:18 +02:00
parent 7872b890fe
commit 2b9fb513f4
1 changed files with 1 additions and 2 deletions

View File

@ -460,10 +460,9 @@ static int dns_resolv ( struct resolv_interface *resolv,
}
/* Allocate DNS structure */
dns = malloc ( sizeof ( *dns ) );
dns = zalloc ( sizeof ( *dns ) );
if ( ! dns )
return -ENOMEM;
memset ( dns, 0, sizeof ( *dns ) );
resolv_init ( &dns->resolv, &null_resolv_ops, &dns->refcnt );
xfer_init ( &dns->socket, &dns_socket_operations, &dns->refcnt );
dns->timer.expired = dns_timer_expired;