X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=src%2Frecur.c;h=57932f8d70162dac444e2dee146df2583034e22b;hb=a7d6a8b51213456e8be087f0e4e4e1f90c5b844a;hp=9de774c44997664ab1da711b61ee79b8aa5517c1;hpb=3dc15952f2e1eae81dd05164b212adf891478dff;p=wget diff --git a/src/recur.c b/src/recur.c index 9de774c4..57932f8d 100644 --- a/src/recur.c +++ b/src/recur.c @@ -325,7 +325,8 @@ retrieve_tree (const char *start_url) struct urlpos *child = children; struct url *url_parsed = url_parsed = url_parse (url, NULL); char *referer_url = url; - bool strip_auth = (bool)url_parsed->user; + bool strip_auth = (url_parsed != NULL + && url_parsed->user != NULL); assert (url_parsed != NULL); /* Strip auth info if present */