From af928aaaaaf8d5a9d55700a4c33d63b304d35c86 Mon Sep 17 00:00:00 2001 From: Steven Schubiger Date: Mon, 11 Oct 2010 22:46:00 +0200 Subject: [PATCH] Fix compiler warning. --- src/ChangeLog | 4 ++++ src/ftp.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 + + * ftp.c (getftp): Initialize `targ'. + 2010-10-08 Ivanov Anton (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; -- 2.39.2