From: Holger Lubitz Date: Sun, 17 Jun 2007 23:25:15 +0000 (+0200) Subject: convert to zalloc X-Git-Tag: v0.9.3~263 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7872b890fe0aa8d741a464018bb9e24354355eab;p=thirdparty%2Fipxe.git convert to zalloc --- diff --git a/src/net/tcp/http.c b/src/net/tcp/http.c index f81a9b540..4a979eae2 100644 --- a/src/net/tcp/http.c +++ b/src/net/tcp/http.c @@ -475,10 +475,9 @@ int http_open ( struct xfer_interface *xfer, struct uri *uri ) { return -EINVAL; /* Allocate and populate HTTP structure */ - http = malloc ( sizeof ( *http ) ); + http = zalloc ( sizeof ( *http ) ); if ( ! http ) return -ENOMEM; - memset ( http, 0, sizeof ( *http ) ); http->refcnt.free = http_free; xfer_init ( &http->xfer, &http_xfer_operations, &http->refcnt ); http->uri = uri_get ( uri );