summaryrefslogtreecommitdiff
path: root/libc/inet
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-06-01 22:11:07 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-06-01 22:11:07 +0000
commit0119403c3acb30557f5efdf8aacb378bed6a6e8e (patch)
treea0d059772e9590f4816df40aaaf856dbc13ebf37 /libc/inet
parenteed923be3e7e81a8d812bd224c138dee5e20f95f (diff)
suppress a few "might be used uninitialized" warnings. No code growth.
Diffstat (limited to 'libc/inet')
-rw-r--r--libc/inet/ntop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/inet/ntop.c b/libc/inet/ntop.c
index 4e448e92b..c1f3fc83c 100644
--- a/libc/inet/ntop.c
+++ b/libc/inet/ntop.c
@@ -126,6 +126,8 @@ inet_ntop6(const u_char *src, char *dst, size_t size)
words[i / 2] = (src[i] << 8) | src[i + 1];
best.base = -1;
cur.base = -1;
+ best.len = best.len; /* shutting up compiler warning */
+ cur.len = cur.len; /* shutting up compiler warning */
for (i = 0; i < 8; i++) {
if (words[i] == 0) {
if (cur.base == -1)