(inet_ntop6): Initialize best.len and cur.len to avoid warnings.
authordrepper <drepper>
Sat, 28 Jul 2007 20:43:48 +0000 (20:43 +0000)
committerdrepper <drepper>
Sat, 28 Jul 2007 20:43:48 +0000 (20:43 +0000)
resolv/inet_ntop.c

index 1222d08..6e89f2d 100644 (file)
@@ -138,6 +138,8 @@ inet_ntop6(src, dst, size)
                words[i / 2] = (src[i] << 8) | src[i + 1];
        best.base = -1;
        cur.base = -1;
+       best.len = 0;
+       cur.len = 0;
        for (i = 0; i < (NS_IN6ADDRSZ / NS_INT16SZ); i++) {
                if (words[i] == 0) {
                        if (cur.base == -1)