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 /src/network/__dns.c | |
parent | 74f75541ffb73181edcc0d7e4efcc4325242e1d9 (diff) | |
download | musl-d4fbebe18d2d063069b1505d357a1ff3b5ca0ab8.tar.gz musl-d4fbebe18d2d063069b1505d357a1ff3b5ca0ab8.tar.bz2 musl-d4fbebe18d2d063069b1505d357a1ff3b5ca0ab8.tar.xz musl-d4fbebe18d2d063069b1505d357a1ff3b5ca0ab8.zip |
fix uninitialized variables in dns lookup code
Diffstat (limited to 'src/network/__dns.c')
-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; |