]> sjero.net Git - wget/commitdiff
[svn] Correctly pass pointers to hash_table_get_pair.
authorhniksic <devnull@localhost>
Tue, 10 May 2005 19:07:57 +0000 (12:07 -0700)
committerhniksic <devnull@localhost>
Tue, 10 May 2005 19:07:57 +0000 (12:07 -0700)
src/ChangeLog
src/res.c

index 2991a9eb1c620d8929914923b65cd0f7b570c619..41bca9f4cf6038e9a2287fde20513263e32aaab9 100644 (file)
@@ -1,3 +1,8 @@
+2005-05-10  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * res.c (res_register_specs): Correctly pass pointers to
+       hash_table_get_pair.
+
 2005-05-10  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * http.c (gethttp): Call ssl_check_server_identity.
index e92f79c330f9b2153b7b90c5501563a925f8383b..0be8e7cf0937a8eb8cc98760db083ccdeab2053a 100644 (file)
--- 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);