]> sjero.net Git - wget/commitdiff
[svn] Modification of patch to recur.c
authormicah <devnull@localhost>
Mon, 27 Aug 2007 21:28:22 +0000 (14:28 -0700)
committermicah <devnull@localhost>
Mon, 27 Aug 2007 21:28:22 +0000 (14:28 -0700)
src/ChangeLog
src/recur.c

index 7de71b35a536da047afe474027447632130823c9..d727a40e27621ef77e75fd95e782a6e0ce632b86 100644 (file)
@@ -6,6 +6,7 @@
        * getopt.c: Fix missing (but, accidentally, legal) comment
        delimiter after licensing text.
        * recur.c (retrieve_tree): Inserted missing cast for strip_auth.
+       Includes adjustment by Ralf Wildenhues.
        * openssl.c (ssl_init): const-ified the meth local variable.
        * main.c: Include all the static function definitions in the
        "#ifndef TESTING" clause, leaving just the definitions for
index 9de774c44997664ab1da711b61ee79b8aa5517c1..57932f8d70162dac444e2dee146df2583034e22b 100644 (file)
@@ -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 */