From 45f96a1a02b6242bd9432315ff8fabcc24071748 Mon Sep 17 00:00:00 2001 From: charnier Date: Sun, 29 May 2005 15:49:53 +0000 Subject: Reduce compiler warning: variable might be used uninitialized, by giving an initial value. --- usr.bin/whois/whois.c | 1 + 1 file changed, 1 insertion(+) (limited to 'usr.bin/whois') diff --git a/usr.bin/whois/whois.c b/usr.bin/whois/whois.c index 51ca8c8..c5bf9f4 100644 --- a/usr.bin/whois/whois.c +++ b/usr.bin/whois/whois.c @@ -279,6 +279,7 @@ whois(const char *query, const char *hostname, int flags) int i, s; size_t c, len; + s = -1; hostres = gethostinfo(hostname, 1); for (res = hostres; res; res = res->ai_next) { s = socket(res->ai_family, res->ai_socktype, res->ai_protocol); -- cgit v1.1