From eeb53d081a276b683072a4ea69f7579ddb0c925a Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 4 Oct 2017 18:07:01 +1100 Subject: [PATCH] silence compiler warning --- lib/isc/inet_ntop.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/isc/inet_ntop.c b/lib/isc/inet_ntop.c index 6001849701..b19cd5d8e0 100644 --- a/lib/isc/inet_ntop.c +++ b/lib/isc/inet_ntop.c @@ -135,7 +135,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)