From b8a6913e0965e5f492dfbe2b39b52ab5813bf08d Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 28 Oct 2002 19:20:59 +0000 Subject: prevent compiler warnings --- lib/ftp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/ftp.c') diff --git a/lib/ftp.c b/lib/ftp.c index 5008d920e..9fe31b857 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -999,7 +999,6 @@ CURLcode ftp_use_port(struct connectdata *conn) #endif unsigned char *ap; unsigned char *pp; - int alen, plen; char portmsgbuf[4096], tmp[4096]; const char *mode[] = { "EPRT", "LPRT", "PORT", NULL }; @@ -1062,6 +1061,7 @@ CURLcode ftp_use_port(struct connectdata *conn) for (modep = (char **)mode; modep && *modep; modep++) { int lprtaf, eprtaf; + int alen=0, plen=0; switch (sa->sa_family) { case AF_INET: @@ -1363,7 +1363,7 @@ CURLcode ftp_use_pasv(struct connectdata *conn, #endif int modeoff; unsigned short connectport; /* the local port connect() should use! */ - unsigned short newport; /* remote port, not necessary the local one */ + unsigned short newport=0; /* remote port, not necessary the local one */ /* newhost must be able to hold a full IP-style address in ASCII, which in the IPv6 case means 5*8-1 = 39 letters */ -- cgit v1.2.3