summaryrefslogtreecommitdiffstats
path: root/src/net
diff options
context:
space:
mode:
authorHolger Lubitz2007-06-18 01:25:15 +0200
committerHolger Lubitz2007-07-06 20:50:32 +0200
commit7872b890fe0aa8d741a464018bb9e24354355eab (patch)
tree498b19d04e61343f7d7eaf2bfceece798fa9421b /src/net
parentconvert to zalloc (diff)
downloadipxe-7872b890fe0aa8d741a464018bb9e24354355eab.tar.gz
ipxe-7872b890fe0aa8d741a464018bb9e24354355eab.tar.xz
ipxe-7872b890fe0aa8d741a464018bb9e24354355eab.zip
convert to zalloc
Diffstat (limited to 'src/net')
-rw-r--r--src/net/tcp/http.c3
1 files changed, 1 insertions, 2 deletions
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 );