]> sjero.net Git - wget/blobdiff - src/res.c
[svn] Correctly pass pointers to hash_table_get_pair.
[wget] / src / res.c
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);