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 7f0d6b2..ca1a3c1 100644 (file)
@@ -1,5 +1,10 @@
 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
 
 2007-12-30  Matthias Clasen  <mclasen@redhat.com> 
index e622353..4433b1c 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);