summaryrefslogtreecommitdiff
path: root/resolv
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-07-28 20:44:03 +0000
committerUlrich Drepper <drepper@redhat.com>2007-07-28 20:44:03 +0000
commit9d9febc7952c43f90fd81ce185e4b1a74cb13375 (patch)
treee53f5184345c494c12c38f59bdd088cbb61160fe /resolv
parent701666b77d9bc02a8dce61adcf02d2b929a2f95a (diff)
* nscd/selinux.c (preserve_capabilities): Initialize new_caps
to avoid warning. * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid warning. * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid warning. * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len to avoid warnings.
Diffstat (limited to 'resolv')
-rw-r--r--resolv/inet_ntop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/resolv/inet_ntop.c b/resolv/inet_ntop.c
index 1222d08bda..6e89f2d058 100644
--- a/resolv/inet_ntop.c
+++ b/resolv/inet_ntop.c
@@ -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)