[git commit future 1/1] _collate.c: avoid initialization warning

Peter S. Mazinger ps.m at gmx.net
Wed Mar 30 11:53:36 UTC 2011


commit: http://git.uclibc.org/uClibc/commit/?id=c5246ab4e62d4f5ec378d6373743d63e71fc25a0
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/future

Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
---
 libc/string/_collate.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libc/string/_collate.c b/libc/string/_collate.c
index def56d2..2ebfb93 100644
--- a/libc/string/_collate.c
+++ b/libc/string/_collate.c
@@ -159,7 +159,7 @@ static void next_weight(col_state_t *cs, int pass   __LOCALE_PARAM )
 #define N (1)
 #else  /* WANT_WIDE */
 	wchar_t WC;
-	size_t n0, nx;
+	size_t n0, nx = 0;
 #define N n0
 
 #endif /* WANT_WIDE */
-- 
1.7.3.4



More information about the uClibc-cvs mailing list