X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fftp.c;h=a95e83897f628870d381037fe047f476ac6a2135;hp=47face7192b9a6aa11b63ee68a8d3670b2b745b5;hb=e2241936d021f264c06f57f260f22960ae77ddea;hpb=c5ca8b715218d07db373c2ec4ffd54d2c5335919 diff --git a/src/ftp.c b/src/ftp.c index 47face71..a95e8389 100644 --- a/src/ftp.c +++ b/src/ftp.c @@ -1114,7 +1114,7 @@ Error in server response, closing control connection.\n")); char *line; /* The lines are being read with read_whole_line because of no-buffering on opt.lfile. */ - while ((line = read_whole_line (fp))) + while ((line = read_whole_line (fp)) != NULL) { logprintf (LOG_ALWAYS, "%s\n", escnonprint (line)); xfree (line); @@ -1793,7 +1793,6 @@ ftp_retrieve_glob (struct url *u, ccon *con, int action) return RETRBADPATTERN; } } - res = RETROK; if (start) { /* Just get everything. */ @@ -1843,7 +1842,6 @@ ftp_loop (struct url *u, int *dt, struct url *proxy) con.rs = ST_UNIX; con.id = NULL; con.proxy = proxy; - res = RETROK; /* in case it's not used */ /* If the file name is empty, the user probably wants a directory index. We'll provide one, properly HTML-ized. Unless