From: Rich Felker Date: Fri, 8 Apr 2011 03:18:12 +0000 (-0400) Subject: fix uninitialized variables in dns lookup code X-Git-Tag: v0.7.8~35 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d4fbebe18d2d063069b1505d357a1ff3b5ca0ab8;p=oweals%2Fmusl.git fix uninitialized variables in dns lookup code --- 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;