mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] (download_child_p): Minor optimization to avoid unnecessary call to
schemes_are_similar_p function. Published in <kvq7eu4okekh2ohb0rdvavt16nbgb02v00@farscape.privy.mev.co.uk>.
This commit is contained in:
parent
e863a6323b
commit
83dc077b17
@ -1,3 +1,8 @@
|
||||
2002-05-16 Ian Abbott <abbotti@mev.co.uk>
|
||||
|
||||
* recur.c (download_child_p): Minor optimization to avoid an
|
||||
unnecessary additional call to schemes_are_similar_p function.
|
||||
|
||||
2002-05-16 Ian Abbott <abbotti@mev.co.uk>
|
||||
|
||||
* url.c (schemes_are_similar_p): New function to test enumerated
|
||||
|
@ -458,7 +458,7 @@ download_child_p (const struct urlpos *upos, struct url *parent, int depth,
|
||||
|
||||
/* 2. If it is an absolute link and they are not followed, throw it
|
||||
out. */
|
||||
if (schemes_are_similar_p (u->scheme, SCHEME_HTTP))
|
||||
if (u_scheme_like_http)
|
||||
if (opt.relative_only && !upos->link_relative_p)
|
||||
{
|
||||
DEBUGP (("It doesn't really look like a relative link.\n"));
|
||||
|
Loading…
Reference in New Issue
Block a user