[Groonga-commit] groonga/groonga [master] test: suppress a warning

Zurück zum Archiv-Index

null+****@clear***** null+****@clear*****
2012年 6月 7日 (木) 23:00:04 JST


Kouhei Sutou	2012-06-07 23:00:04 +0900 (Thu, 07 Jun 2012)

  New Revision: fe9f2dfe30d777c8706ca5acf366658a40addd12

  Log:
    test: suppress a warning
    
    warning: 'encoded' may be used uninitialized in this function [-Wuninitialized]

  Modified files:
    test/unit/util/test-string.c

  Modified: test/unit/util/test-string.c (+1 -1)
===================================================================
--- test/unit/util/test-string.c    2012-06-07 22:58:16 +0900 (ba5a4fc)
+++ test/unit/util/test-string.c    2012-06-07 23:00:04 +0900 (a87d3c5)
@@ -149,7 +149,7 @@ data_normalize(void)
 static const gchar *
 convert_encoding(const gchar *utf8, grn_encoding encoding)
 {
-  const gchar *encoded;
+  const gchar *encoded = NULL;
   GError *error = NULL;
 
   switch (encoding) {




Groonga-commit メーリングリストの案内
Zurück zum Archiv-Index