[gnome-software/wip/temp/ubuntu-xenial-rebased: 131/326] Don't perform a lookup when the category is NULL
- From: Iain Lane <iainl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/temp/ubuntu-xenial-rebased: 131/326] Don't perform a lookup when the category is NULL
- Date: Fri, 29 Apr 2016 09:58:20 +0000 (UTC)
commit 0d79d237bc7e16dda5b79482620ac6b938f1b05b
Author: William Hua <william hua canonical com>
Date: Mon Feb 29 17:44:40 2016 -0500
Don't perform a lookup when the category is NULL
Some desktop files like fslint.desktop have a NULL category entry that
causes a segfault when trying to do a lookup in get_app_folder ().
src/gs-folders.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-folders.c b/src/gs-folders.c
index ad92b07..02768e4 100644
--- a/src/gs-folders.c
+++ b/src/gs-folders.c
@@ -450,6 +450,7 @@ static GsFolder *
get_app_folder (GsFolders *folders, const gchar *app, GPtrArray *categories)
{
GsFolder *folder;
+ const gchar *category;
guint i;
folder = g_hash_table_lookup (folders->apps, app);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]