summaryrefslogtreecommitdiff
path: root/libftpconn/open.c
diff options
context:
space:
mode:
Diffstat (limited to 'libftpconn/open.c')
-rw-r--r--libftpconn/open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libftpconn/open.c b/libftpconn/open.c
index f52bf4d0..f1a1b854 100644
--- a/libftpconn/open.c
+++ b/libftpconn/open.c
@@ -189,7 +189,7 @@ ftp_conn_open (struct ftp_conn *conn)
close (conn->control);
conn->control = -1;
}
- bzero (&conn->syshooks, sizeof conn->syshooks);
+ memset (&conn->syshooks, 0, sizeof conn->syshooks);
csock = socket (PF_INET, SOCK_STREAM, 0);
if (csock < 0)