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

an initial value.
This commit is contained in:
charnier 2005-05-29 15:49:53 +00:00
parent 3d484d1c7a
commit 45f96a1a02
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);