]> sjero.net Git - wget/commitdiff
[svn] Check whether downloaded_html_set is non-NULL before using it.
authorhniksic <devnull@localhost>
Wed, 24 Jul 2002 21:16:30 +0000 (14:16 -0700)
committerhniksic <devnull@localhost>
Wed, 24 Jul 2002 21:16:30 +0000 (14:16 -0700)
Posted in <sxsr8hsvnhh.fsf@florida.munich.redhat.com>.

src/ChangeLog
src/recur.c

index f3ba5f0f1ccf502f1fce9835f9fbcfa1ce4d2a86..ae874689ea7a894356cb541c639df482f6f552d9 100644 (file)
@@ -1,3 +1,8 @@
+2002-07-24  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * recur.c (retrieve_tree): Check whether downloaded_html_set is
+       non-NULL before using it.
+
 2002-05-27  Hrvoje Niksic  <hniksic@arsdigita.com>
 
        * html-parse.c (NAME_CHAR_P): Allow almost any character here.
index 1b9c6bfea13d5b44c38d1f52af3d1a00712b173d..9507c2f20cccd0e9cd22bfc36f46247354f413c3 100644 (file)
@@ -254,7 +254,8 @@ retrieve_tree (const char *start_url)
          DEBUGP (("Already downloaded \"%s\", reusing it from \"%s\".\n",
                   url, file));
 
-         if (string_set_contains (downloaded_html_set, file))
+         if (downloaded_html_set
+             && string_set_contains (downloaded_html_set, file))
            descend = 1;
        }
       else