From c17e1b639681196f4365c7fcdc83d30a9e21d2d0 Mon Sep 17 00:00:00 2001 From: hniksic Date: Tue, 10 May 2005 12:07:57 -0700 Subject: [PATCH] [svn] Correctly pass pointers to hash_table_get_pair. --- src/ChangeLog | 5 +++++ src/res.c | 6 +----- 2 files changed, 6 insertions(+), 5 deletions(-) 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);