]> sjero.net Git - wget/commitdiff
Apply patch to fix always reporting local size of zero.
authorMicah Cowan <micah@cowan.name>
Tue, 25 Sep 2007 05:17:31 +0000 (22:17 -0700)
committerMicah Cowan <micah@cowan.name>
Tue, 25 Sep 2007 05:17:31 +0000 (22:17 -0700)
src/ChangeLog
src/http.c

index 5f598e628159d2bf7d769aec19e2714546052770..17e398607afbfcfb49399b89917debf30bf65a2f 100644 (file)
@@ -1,3 +1,8 @@
+2007-09-24  Jochen Roderburg  <roderburg@uni-koeln.de>
+
+       * http.c (http_zero): Remove no-longer-used local_size variable.
+       Fixes bug #21057.
+
 2007-08-29  Micah Cowan  <micah@cowan.name>
 
        * openssl.c (ssl_init): Re un-const-ified the meth local
index 0e292918612a0fa861c9b8365b637303dfa2678a..6dd5158c82a2c460e7afa95aebfb5b2d076f2a72 100644 (file)
@@ -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