From 76661bdc294a75d9ce6758a2b4250f0c50b8a6d6 Mon Sep 17 00:00:00 2001
From: hniksic <devnull@localhost>
Date: Fri, 25 Feb 2005 14:00:18 -0800
Subject: [PATCH] [svn] iInitialize err in getftp to suppress gcc warning.

---
 src/ChangeLog | 4 ++++
 src/ftp.c     | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/ChangeLog b/src/ChangeLog
index 49af189e..921f2d4c 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -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
diff --git a/src/ftp.c b/src/ftp.c
index 838f1410..e65f8284 100644
--- 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;