From: Matthias Clasen Date: Mon, 31 Dec 2007 01:47:59 +0000 (+0000) Subject: Don't include NULLs in the list of returned app infos. X-Git-Tag: GLIB_2_15_1~48 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4ea56399b61071b70e53ddea4da9919b281d7cbf;p=platform%2Fupstream%2Fglib.git Don't include NULLs in the list of returned app infos. 2007-12-30 Matthias Clasen * gdesktopfileinfo.c (g_app_info_get_all): Don't include NULLs in the list of returned app infos. svn path=/trunk/; revision=6218 --- diff --git a/gio/ChangeLog b/gio/ChangeLog index 7f0d6b2..ca1a3c1 100644 --- a/gio/ChangeLog +++ b/gio/ChangeLog @@ -1,5 +1,10 @@ 2007-12-30 Matthias Clasen + * gdesktopfileinfo.c (g_app_info_get_all): Don't include NULLs + in the list of returned app infos. + +2007-12-30 Matthias Clasen + * gappinfo.c: Fix a cross-reference 2007-12-30 Matthias Clasen diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c index e622353..4433b1c 100644 --- a/gio/gdesktopappinfo.c +++ b/gio/gdesktopappinfo.c @@ -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);