Don't evaluate an uninitialized value
authorMatthias Clasen <mclasen@redhat.com>
Mon, 7 Sep 2009 06:50:51 +0000 (02:50 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 7 Sep 2009 06:50:51 +0000 (02:50 -0400)
Bug found by clang.

gio/gdesktopappinfo.c

index 6b6107c288f5f5ba2ef156f8556a97ea42d0c28d..4bd76ff85af1415d330916c2131d21861fd67fff 100644 (file)
@@ -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))
                    {