diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-04-07 23:18:12 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-04-07 23:18:12 -0400 |
commit | d4fbebe18d2d063069b1505d357a1ff3b5ca0ab8 (patch) | |
tree | af11975a77fed709d9c4e58bef0c99c2ab6d1432 | |
parent | 74f75541ffb73181edcc0d7e4efcc4325242e1d9 (diff) | |
download | musl-d4fbebe18d2d063069b1505d357a1ff3b5ca0ab8.tar.gz |
fix uninitialized variables in dns lookup code
-rw-r--r-- | src/network/__dns.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/__dns.c b/src/network/__dns.c index b8547bba..cdd64299 100644 --- a/src/network/__dns.c +++ b/src/network/__dns.c @@ -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; |