summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/tset/map.c1
-rw-r--r--usr.bin/whois/whois.c1
2 files changed, 2 insertions, 0 deletions
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);
OpenPOWER on IntegriCloud