diff options
| author | Holger Lubitz | 2007-06-18 01:25:21 +0200 |
|---|---|---|
| committer | Holger Lubitz | 2007-07-06 20:52:58 +0200 |
| commit | da3c7858167b0f629f01820486f0f96e19673f7e (patch) | |
| tree | 5b75729d47fd6e70a8be7b7689cdbb63ad5ea98e /src/net/udp | |
| parent | convert to zalloc (diff) | |
| download | ipxe-da3c7858167b0f629f01820486f0f96e19673f7e.tar.gz ipxe-da3c7858167b0f629f01820486f0f96e19673f7e.tar.xz ipxe-da3c7858167b0f629f01820486f0f96e19673f7e.zip | |
convert to zalloc
Diffstat (limited to 'src/net/udp')
| -rw-r--r-- | src/net/udp/tftp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net/udp/tftp.c b/src/net/udp/tftp.c index f42a96be5..4bbeb0f8b 100644 --- a/src/net/udp/tftp.c +++ b/src/net/udp/tftp.c @@ -635,10 +635,9 @@ int tftp_open ( struct xfer_interface *xfer, struct uri *uri ) { return -EINVAL; /* Allocate and populate TFTP structure */ - tftp = malloc ( sizeof ( *tftp ) ); + tftp = zalloc ( sizeof ( *tftp ) ); if ( ! tftp ) return -ENOMEM; - memset ( tftp, 0, sizeof ( *tftp ) ); tftp->refcnt.free = tftp_free; xfer_init ( &tftp->xfer, &tftp_xfer_operations, &tftp->refcnt ); tftp->uri = uri_get ( uri ); |
