From: hniksic Date: Sun, 18 Nov 2001 04:14:12 +0000 (-0800) Subject: [svn] Initialize vars to appease the compiler. X-Git-Tag: v1.13~2069 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=09b0fe29a8409a1ab7cc2f59a0df19c2bf5af5ba [svn] Initialize vars to appease the compiler. Published in . --- diff --git a/src/ChangeLog b/src/ChangeLog index a703c45b..7474aa46 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2001-11-18 Hrvoje Niksic + + * res.c (res_register_specs): Initialize OLD and HP_OLD to appease + the compiler. + 2001-11-18 Hrvoje Niksic * http.c (gethttp): Print the whole response line when printing diff --git a/src/res.c b/src/res.c index 7b7f5538..9cd15db6 100644 --- 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)