]> sjero.net Git - wget/commitdiff
[svn] Initialize vars to appease the compiler.
authorhniksic <devnull@localhost>
Sun, 18 Nov 2001 04:14:12 +0000 (20:14 -0800)
committerhniksic <devnull@localhost>
Sun, 18 Nov 2001 04:14:12 +0000 (20:14 -0800)
Published in <sxszo5kbxs3.fsf@florida.arsdigita.de>.

src/ChangeLog
src/res.c

index a703c45b0de8c7489d1c8a3538f55f3bf7fab89f..7474aa463fc13c1b79431918fdf3a32c21db3ece 100644 (file)
@@ -1,3 +1,8 @@
+2001-11-18  Hrvoje Niksic  <hniksic@arsdigita.com>
+
+       * res.c (res_register_specs): Initialize OLD and HP_OLD to appease
+       the compiler.
+
 2001-11-18  Hrvoje Niksic  <hniksic@arsdigita.com>
 
        * http.c (gethttp): Print the whole response line when printing
index 7b7f55388b72cf1c50ccb9a67232a431728b0e29..9cd15db6ca58f344a9dfdf6ffa67f7a4e12cac55 100644 (file)
--- a/src/res.c
+++ b/src/res.c
@@ -487,6 +487,10 @@ 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 (old)