From: Micah Cowan Date: Tue, 25 Sep 2007 05:17:31 +0000 (-0700) Subject: Apply patch to fix always reporting local size of zero. X-Git-Tag: v1.13~541^2~1 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=f08922082f48c90fb4a37d597e0a8e782cb5ba55 Apply patch to fix always reporting local size of zero. --- diff --git a/src/ChangeLog b/src/ChangeLog index 5f598e62..17e39860 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2007-09-24 Jochen Roderburg + + * http.c (http_zero): Remove no-longer-used local_size variable. + Fixes bug #21057. + 2007-08-29 Micah Cowan * openssl.c (ssl_init): Re un-const-ified the meth local diff --git a/src/http.c b/src/http.c index 0e292918..6dd5158c 100644 --- a/src/http.c +++ b/src/http.c @@ -2311,7 +2311,6 @@ http_loop (struct url *u, char **newloc, char **local_file, const char *referer, const char *tmrate; uerr_t err, ret = TRYLIMEXC; time_t tmr = -1; /* remote time-stamp */ - wgint local_size = 0; /* the size of the local file */ struct http_stat hstat; /* HTTP status */ struct_stat st; bool send_head_first = true; @@ -2589,7 +2588,7 @@ Server file no newer than local file `%s' -- not retrieving.\n\n"), { logprintf (LOG_VERBOSE, _("\ The sizes do not match (local %s) -- retrieving.\n"), - number_to_static_string (local_size)); + number_to_static_string (hstat.orig_file_size)); } } else