Reduce compiler warning: variable might be used uninitialized, by giving
an initial value.
This commit is contained in:
parent
3d484d1c7a
commit
45f96a1a02
@ -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) {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user