diff --git a/src/ChangeLog b/src/ChangeLog
index 8d15a17d..77eeaf37 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
+2010-10-11  Steven Schubiger <stsc@member.fsf.org>
+
+	* ftp.c (getftp): Initialize `targ'.
+
 2010-10-08  Ivanov Anton <x86mail@gmail.com> (tiny change)
 
     * src/html-url.c (check_style_attr): Skip quotes when they are present.
diff --git a/src/ftp.c b/src/ftp.c
index cba54500..e90db9a8 100644
--- a/src/ftp.c
+++ b/src/ftp.c
@@ -503,7 +503,7 @@ Error in server response, closing control connection.\n"));
         logputs (LOG_VERBOSE, _("==> CWD not needed.\n"));
       else
         {
-          char *targ;
+          char *targ = NULL;
 	  int cwd_count;
 	  int cwd_end;
 	  int cwd_start;