From: hniksic Date: Tue, 10 May 2005 19:07:57 +0000 (-0700) Subject: [svn] Correctly pass pointers to hash_table_get_pair. X-Git-Tag: v1.13~1058 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=c17e1b639681196f4365c7fcdc83d30a9e21d2d0 [svn] Correctly pass pointers to hash_table_get_pair. --- diff --git a/src/ChangeLog b/src/ChangeLog index 2991a9eb..41bca9f4 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2005-05-10 Hrvoje Niksic + + * res.c (res_register_specs): Correctly pass pointers to + hash_table_get_pair. + 2005-05-10 Hrvoje Niksic * http.c (gethttp): Call ssl_check_server_identity. diff --git a/src/res.c b/src/res.c index e92f79c3..0be8e7cf 100644 --- a/src/res.c +++ b/src/res.c @@ -501,11 +501,7 @@ res_register_specs (const char *host, int port, struct robot_specs *specs) if (!registered_specs) registered_specs = make_nocase_string_hash_table (0); - /* Required to shut up the compiler. */ - old = NULL; - hp_old = NULL; - - if (hash_table_get_pair (registered_specs, hp, hp_old, old)) + if (hash_table_get_pair (registered_specs, hp, &hp_old, &old)) { if (old) free_specs (old);