浏览代码

_collate.c: avoid initialization warning

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger 14 年之前
父节点
当前提交
e041f4b2e2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      libc/string/_collate.c

+ 1 - 1
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 */