Don't include NULLs in the list of returned app infos.

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
This commit is contained in:
Matthias Clasen 2007-12-31 01:47:59 +00:00 committed by Matthias Clasen
parent c009b04f42
commit 4ea56399b6
2 changed files with 9 additions and 1 deletions

View 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

View 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);