1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-08 17:42:12 +03:00

* 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.
This commit is contained in:
Ulrich Drepper
2007-07-28 20:44:03 +00:00
parent 701666b77d
commit 9d9febc795
5 changed files with 15 additions and 4 deletions

View 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)