[git commit] _collate.c: avoid initialization warning

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Fri Jun 15 12:00:35 UTC 2012


commit: http://git.uclibc.org/uClibc/commit/?id=e041f4b2e2f2c3162baef3b20dd1712a8e639252
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master

Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
 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 */


More information about the uClibc-cvs mailing list