[glib] Don't evaluate an uninitialized value



commit 80fd5ed402bf57a3c5cbd90eecc3f58f3f06bc08
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Sep 7 02:50:51 2009 -0400

    Don't evaluate an uninitialized value
    
    Bug found by clang.

 gio/gdesktopappinfo.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c
index 6b6107c..4bd76ff 100644
--- a/gio/gdesktopappinfo.c
+++ b/gio/gdesktopappinfo.c
@@ -1852,6 +1852,7 @@ get_apps_from_dir (GHashTable *apps,
 	      if (!g_hash_table_lookup_extended (apps, desktop_id, NULL, NULL))
 		{
 		  appinfo = g_desktop_app_info_new_from_filename (filename);
+                  hidden = FALSE;
 
 		  if (appinfo && g_desktop_app_info_get_is_hidden (appinfo))
 		    {



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