2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-12-14 07:11:32 +00:00

convert to zalloc

This commit is contained in:
Holger Lubitz 2007-06-18 01:25:13 +02:00
parent dc6c1c294d
commit 7fa85d19b9

View File

@ -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 );