From: hniksic Date: Wed, 24 Jul 2002 21:16:30 +0000 (-0700) Subject: [svn] Check whether downloaded_html_set is non-NULL before using it. X-Git-Tag: v1.13~1742 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=d7673d398b309233c164ab039742f81b4d7f1a01 [svn] Check whether downloaded_html_set is non-NULL before using it. Posted in . --- diff --git a/src/ChangeLog b/src/ChangeLog index f3ba5f0f..ae874689 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2002-07-24 Hrvoje Niksic + + * recur.c (retrieve_tree): Check whether downloaded_html_set is + non-NULL before using it. + 2002-05-27 Hrvoje Niksic * html-parse.c (NAME_CHAR_P): Allow almost any character here. diff --git a/src/recur.c b/src/recur.c index 1b9c6bfe..9507c2f2 100644 --- a/src/recur.c +++ b/src/recur.c @@ -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