mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
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:
parent
c009b04f42
commit
4ea56399b6
@ -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
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user