Don't include NULLs in the list of returned app infos.
authorMatthias Clasen <mclasen@redhat.com>
Mon, 31 Dec 2007 01:47:59 +0000 (01:47 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 31 Dec 2007 01:47:59 +0000 (01:47 +0000)
2007-12-30  Matthias Clasen  <mclasen@redhat.com>

        * gdesktopfileinfo.c (g_app_info_get_all): Don't include NULLs
        in the list of returned app infos.

svn path=/trunk/; revision=6218

gio/ChangeLog
gio/gdesktopappinfo.c

index 7f0d6b2960392d47b08eb72ebbe32f9c5a468c6d..ca1a3c1fe108dd792f92efb7e94d442c4bc76a03 100644 (file)
@@ -1,3 +1,8 @@
+2007-12-30  Matthias Clasen  <mclasen@redhat.com> 
+
+       * gdesktopfileinfo.c (g_app_info_get_all): Don't include NULLs
+       in the list of returned app infos.
+
 2007-12-30  Matthias Clasen  <mclasen@redhat.com> 
 
        * gappinfo.c: Fix a cross-reference
index e622353e57888ae79d98442c1aa61ef6d9e080cc..4433b1c7e817a7cc0158d4cad5f333a19b1fd3da 100644 (file)
@@ -1722,7 +1722,10 @@ g_app_info_get_all (void)
   infos = NULL;
   g_hash_table_iter_init (&iter, apps);
   while (g_hash_table_iter_next (&iter, NULL, &value))
-    infos = g_list_prepend (infos, value);
+    {
+      if (value)
+        infos = g_list_prepend (infos, value);
+    }
 
   g_hash_table_destroy (apps);