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/tset/map.c | 1 + usr.bin/whois/whois.c | 1 + 2 files changed, 2 insertions(+) (limited to 'usr.bin') diff --git a/usr.bin/tset/map.c b/usr.bin/tset/map.c index a86d7c4..d3db6b6 100644 --- a/usr.bin/tset/map.c +++ b/usr.bin/tset/map.c @@ -196,6 +196,7 @@ mapped(type) MAP *mapp; int match; + match = 0; for (mapp = maplist; mapp; mapp = mapp->next) if (mapp->porttype == NULL || !strcmp(mapp->porttype, type)) { switch (mapp->conditional) { 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