fix uninitialized variables in dns lookup code

This commit is contained in:
Rich Felker 2011-04-07 23:18:12 -04:00
parent 74f75541ff
commit d4fbebe18d
1 changed files with 2 additions and 2 deletions

View File

@ -31,8 +31,8 @@ int __dns_doqueries(unsigned char *dest, const char *name, int *rr, int rrcnt)
struct sockaddr_in6 sin6;
} sa = {0}, ns[3] = {{0}};
socklen_t sl;
int nns;
int family;
int nns = 0;
int family = AF_UNSPEC;
unsigned char q[280] = "", *r = dest;
int ql;
int rlen;