From: Wouter Wijngaards Date: Mon, 5 Dec 2011 14:25:51 +0000 (+0000) Subject: fix warnings for gcc 4.6 X-Git-Tag: release-1.6.12~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1009497f34082ce3a59530b92b718bfc395dfba0;p=thirdparty%2Fldns.git fix warnings for gcc 4.6 --- diff --git a/compat/inet_ntop.c b/compat/inet_ntop.c index 57509c7c..52197d0e 100644 --- a/compat/inet_ntop.c +++ b/compat/inet_ntop.c @@ -135,7 +135,9 @@ inet_ntop6(const u_char *src, char *dst, size_t size) for (i = 0; i < IN6ADDRSZ; i++) words[i / 2] |= (src[i] << ((1 - (i % 2)) << 3)); best.base = -1; + best.len = 0; cur.base = -1; + cur.len = 0; for (i = 0; i < (IN6ADDRSZ / INT16SZ); i++) { if (words[i] == 0) { if (cur.base == -1)