aboutsummaryrefslogtreecommitdiff
path: root/ares/inet_ntop.c
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2005-11-11 19:25:29 +0000
committerGisle Vanem <gvanem@broadpark.no>2005-11-11 19:25:29 +0000
commit6bcca3eca985b4ee1d4e8466e44a53eb23c5f090 (patch)
treeff1eb556fe0b386ab07748cdd20fe3f94ae43516 /ares/inet_ntop.c
parentce40b8d531150debffa6ac98b8431796f2eba3df (diff)
Squelch gcc 4.x warning.
Diffstat (limited to 'ares/inet_ntop.c')
-rw-r--r--ares/inet_ntop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ares/inet_ntop.c b/ares/inet_ntop.c
index 15488bf00..60d91b956 100644
--- a/ares/inet_ntop.c
+++ b/ares/inet_ntop.c
@@ -127,7 +127,7 @@ inet_ntop6(const unsigned char *src, char *dst, size_t size)
* to use pointer overlays. All the world's not a VAX.
*/
char tmp[sizeof "ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255"], *tp;
- struct { int base, len; } best, cur;
+ struct { int base, len; } best = { 0,0 }, cur = { 0,0 };
unsigned int words[NS_IN6ADDRSZ / NS_INT16SZ];
int i;