]> sjero.net Git - wget/commitdiff
[svn] iInitialize err in getftp to suppress gcc warning.
authorhniksic <devnull@localhost>
Fri, 25 Feb 2005 22:00:18 +0000 (14:00 -0800)
committerhniksic <devnull@localhost>
Fri, 25 Feb 2005 22:00:18 +0000 (14:00 -0800)
src/ChangeLog
src/ftp.c

index 49af189e1436dbbb10de6420921363792d03bf3d..921f2d4c2033e30ad5ee2418227040ab5dd2e323 100644 (file)
@@ -1,3 +1,7 @@
+2005-02-25  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * ftp.c (getftp): Initialize err to suppress compiler warning.
+
 2005-02-24  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * ftp.c (ftp_expected_bytes): Fix bug that caused infloop because
index 838f1410d9b66660175e828d152d0ba2c0b5a89c..e65f8284dccae3a3d835f41410b37817cb95e2dd 100644 (file)
--- a/src/ftp.c
+++ b/src/ftp.c
@@ -227,7 +227,7 @@ static uerr_t
 getftp (struct url *u, wgint *len, wgint restval, ccon *con)
 {
   int csock, dtsock, local_sock, res;
-  uerr_t err;
+  uerr_t err = RETROK;         /* appease the compiler */
   FILE *fp;
   char *user, *passwd, *respline;
   char *tms, *tmrate;