diff options
author | Holger Lubitz <hal@duncan.ol.sub.de> | 2007-06-18 01:25:13 +0200 |
---|---|---|
committer | Holger Lubitz <hal@duncan.ol.sub.de> | 2007-07-06 20:49:26 +0200 |
commit | 7fa85d19b95ac6d0cf423b26719419c0981d28df (patch) | |
tree | dc02e74991d6705dc0c78de429ca25656bd708a0 /src/net/tcp | |
parent | dc6c1c294d130a150fab65073a22ae189d4d6d57 (diff) | |
download | ipxe-7fa85d19b95ac6d0cf423b26719419c0981d28df.tar.gz |
convert to zalloc
Diffstat (limited to 'src/net/tcp')
-rw-r--r-- | src/net/tcp/ftp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net/tcp/ftp.c b/src/net/tcp/ftp.c index b027d912a..9a9080857 100644 --- a/src/net/tcp/ftp.c +++ b/src/net/tcp/ftp.c @@ -426,10 +426,9 @@ static int ftp_open ( struct xfer_interface *xfer, struct uri *uri ) { return -EINVAL; /* Allocate and populate structure */ - ftp = malloc ( sizeof ( *ftp ) ); + ftp = zalloc ( sizeof ( *ftp ) ); if ( ! ftp ) return -ENOMEM; - memset ( ftp, 0, sizeof ( *ftp ) ); ftp->refcnt.free = ftp_free; xfer_init ( &ftp->xfer, &ftp_xfer_operations, &ftp->refcnt ); ftp->uri = uri_get ( uri ); |