From da6b3f4b614fb8b28bf388b66f21efc5d553ebb9 Mon Sep 17 00:00:00 2001 From: Saint Xavier Date: Sun, 20 Jul 2008 18:20:18 +0200 Subject: [PATCH] Use dt rather than result --- src/recur.c | 2 +- src/retr.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/recur.c b/src/recur.c index e5f2b929..d8279c39 100644 --- a/src/recur.c +++ b/src/recur.c @@ -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))); diff --git a/src/retr.c b/src/retr.c index 05ffe1d0..02106081 100644 --- a/src/retr.c +++ b/src/retr.c @@ -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);*/ -- 2.39.2