mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-28 08:02:54 +00:00
Reduce compiler warning: variable might be used uninitialized, by giving
an initial value.
This commit is contained in:
parent
0bf92eb85e
commit
a8cf0aaf75
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=146752
@ -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