]> sjero.net Git - wget/commitdiff
Fix compiler warning.
authorSteven Schubiger <stsc@member.fsf.org>
Mon, 11 Oct 2010 20:46:00 +0000 (22:46 +0200)
committerGiuseppe Scrivano <gscrivano@gnu.org>
Mon, 11 Oct 2010 20:46:00 +0000 (22:46 +0200)
src/ChangeLog
src/ftp.c

index 8d15a17d335f81b504987a5e1b2c00dc89f4c10a..77eeaf37399005d5d6eaeaa271dfd1154e93e52e 100644 (file)
@@ -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.
index cba545002d9039a936bfd18da3dcb0852387374d..e90db9a82dbcb76c2eb49881a6d8e47356fadba9 100644 (file)
--- 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;