1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] Oops! Fix braino in recur.c -- clear the hash tables only when

they are defined.
This commit is contained in:
hniksic 2001-03-30 18:21:20 -08:00
parent 8f048b7be8
commit 8c4cd805e2
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2001-03-31 Hrvoje Niksic <hniksic@arsdigita.com>
* recur.c (recursive_retrieve): Clear the hash tables only when
they are defined.
2001-03-31 Hrvoje Niksic <hniksic@arsdigita.com>
* http.c (gethttp): Make sure the socket is closed with

View File

@ -157,8 +157,10 @@ recursive_retrieve (const char *file, const char *this_url)
hash_table_clear (undesirable_urls);
string_set_add (undesirable_urls, this_url);
hash_table_clear (dl_file_url_map);
hash_table_clear (dl_url_file_map);
if (dl_file_url_map)
hash_table_clear (dl_file_url_map);
if (dl_url_file_map)
hash_table_clear (dl_url_file_map);
/* Enter this_url to the hash table, in original and "enhanced" form. */
u = newurl ();
err = parseurl (this_url, u, 0);