[glib: 2/4] glib/tests: Fix variable maybe uninitialized warning




commit c2ff12ced555f0181e93427675e3dca59f93acde
Author: Pablo Correa Gómez <ablocorrea hotmail com>
Date:   Tue Jan 18 16:34:41 2022 +0100

    glib/tests: Fix variable maybe uninitialized warning

 glib/tests/search-utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/tests/search-utils.c b/glib/tests/search-utils.c
index 7478a290a..cbe5bed80 100644
--- a/glib/tests/search-utils.c
+++ b/glib/tests/search-utils.c
@@ -76,7 +76,7 @@ test_search (gconstpointer d)
   for (i = 0; tests[i].string != NULL; i++)
     {
       gboolean match;
-      gboolean ok;
+      gboolean ok = FALSE;
       gboolean skipped;
 
       if (setlocale (LC_ALL, tests[i].locale))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]