]> sjero.net Git - wget/commitdiff
Use dt rather than result
authorSaint Xavier <wget@sxav.eu>
Sun, 20 Jul 2008 16:20:18 +0000 (18:20 +0200)
committerSaint Xavier <wget@sxav.eu>
Sun, 20 Jul 2008 16:20:18 +0000 (18:20 +0200)
src/recur.c
src/retr.c

index e5f2b929269e0b8afe2188c1becb26f95ede28ab..d8279c39e4b868b69a59cfbb958851e926cb8dd5 100644 (file)
@@ -450,7 +450,7 @@ download_child_p (const struct urlpos *upos, struct url *parent, int depth,
 
   if (string_set_contains (blacklist, url))
     {
-      if (opt.spider) 
+      if (opt.spider)
         {
           char *referrer = url_string (parent, URL_AUTH_HIDE_PASSWD);
           DEBUGP (("download_child_p: parent->url is: %s\n", quote (parent->url)));
index 05ffe1d03b460c4cc761177d2f56b801ea7e0277..021060819d3aa8e36b44c539d0aee46908a1ad3a 100644 (file)
@@ -780,7 +780,7 @@ retrieve_url (const char *origurl, char **file, char **newloc,
     }
 
   /* Try to not encode in UTF-8 if fetching failed */
-  if (result != RETROK && utf8_encoded)
+  if (!(*dt & RETROKF) && utf8_encoded)
     {
       utf8_encoded = false;
       /*printf ("[Fallbacking to non-utf8 for `%s'\n", url);*/