From: Wouter Wijngaards Date: Mon, 5 Dec 2011 14:25:01 +0000 (+0000) Subject: - Fix warnings with gcc 4.6 in compat/inet_ntop.c. X-Git-Tag: release-1.4.14rc1~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=694f02f1dfd2a2d3cff61b825164ddb740e4f452;p=thirdparty%2Funbound.git - Fix warnings with gcc 4.6 in compat/inet_ntop.c. git-svn-id: file:///svn/unbound/trunk@2562 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/compat/inet_ntop.c b/compat/inet_ntop.c index 92e07c77a..bd418ae7d 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) diff --git a/doc/Changelog b/doc/Changelog index 186ce3326..695e4f2d7 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,5 +1,6 @@ 5 December 2011: Wouter - Fix getaddrinfowithincludes on windows with fedora16 mingw32-gcc. + - Fix warnings with gcc 4.6 in compat/inet_ntop.c. 2 December 2011: Wouter - configure generated with autoconf 2.68.