Reduce compiler warning: variable might be used uninitialized, by giving

an initial value.
This commit is contained in:
Philippe Charnier 2005-05-29 15:49:53 +00:00
parent 0bf92eb85e
commit a8cf0aaf75
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=146752
2 changed files with 2 additions and 0 deletions

View File

@ -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) {

View File

@ -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);