From f3ef6af5b4175aef06cdbfff657f838e6e12eee9 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Mon, 13 Mar 2006 22:25:16 +0000 Subject: - Got rid of one compiler warning about a clobbered variable. - Split a line that had two statements on it (looked like an accidental joining). --- Src/Modules/zftp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Src/Modules/zftp.c') diff --git a/Src/Modules/zftp.c b/Src/Modules/zftp.c index 803f517c6..45e04d4f8 100644 --- a/Src/Modules/zftp.c +++ b/Src/Modules/zftp.c @@ -1698,7 +1698,7 @@ zftp_open(char *name, char **args, int flags) { struct protoent *zprotop; struct servent *zservp; - struct hostent *zhostp = NULL; + struct hostent *zhostp; char **addrp, *fname, *tmpptr, *portnam = "ftp"; char *hostnam, *hostsuffix; int err, tmout, port = -1; @@ -1870,7 +1870,8 @@ zftp_open(char *name, char **args, int flags) if(hlen != zhostp->h_length) zwarnnam(name, "address length mismatch", NULL, 0); do { - err = tcp_connect(zfsess->control, *addrp, zhostp, zservp->s_port); } while (err && errno == EINTR && !errflag); + err = tcp_connect(zfsess->control, *addrp, zhostp, zservp->s_port); + } while (err && errno == EINTR && !errflag); /* you can check whether it's worth retrying here */ } -- cgit 1.4.1