From 09b0fe29a8409a1ab7cc2f59a0df19c2bf5af5ba Mon Sep 17 00:00:00 2001 From: hniksic Date: Sat, 17 Nov 2001 20:14:12 -0800 Subject: [PATCH] [svn] Initialize vars to appease the compiler. Published in . --- src/ChangeLog | 5 +++++ src/res.c | 4 ++++ 2 files changed, 9 insertions(+) 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) -- 2.39.2