From: Mark Andrews Date: Wed, 4 Oct 2017 07:07:01 +0000 (+1100) Subject: silence compiler warning X-Git-Tag: v9.12.0b1~97 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=e541ee4599b79af18517c6fde33e947788aa9901;p=thirdparty%2Fbind9.git silence compiler warning --- diff --git a/lib/isc/inet_ntop.c b/lib/isc/inet_ntop.c index 21d5f4b7de4..eeb236c5e77 100644 --- a/lib/isc/inet_ntop.c +++ b/lib/isc/inet_ntop.c @@ -126,7 +126,9 @@ inet_ntop6(const unsigned char *src, char *dst, size_t size) for (i = 0; i < NS_IN6ADDRSZ; i++) words[i / 2] |= (src[i] << ((1 - (i % 2)) << 3)); best.base = -1; + best.len = 0; /* silence compiler */ cur.base = -1; + cur.len = 0; /* silence compiler */ for (i = 0; i < (NS_IN6ADDRSZ / NS_INT16SZ); i++) { if (words[i] == 0) { if (cur.base == -1)