[gnome-software/gnome-3-20] Fix potential crash when icons are missing
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-20] Fix potential crash when icons are missing
- Date: Thu, 21 Jun 2018 21:11:18 +0000 (UTC)
commit 25be50afc3858ceaec3debac250de716c23413a1
Author: Richard Hughes <richard hughsie com>
Date: Wed Apr 27 19:52:04 2016 +0100
Fix potential crash when icons are missing
Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=764921
src/plugins/gs-appstream.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/plugins/gs-appstream.c b/src/plugins/gs-appstream.c
index 305dc093..dfdc8eea 100644
--- a/src/plugins/gs-appstream.c
+++ b/src/plugins/gs-appstream.c
@@ -107,7 +107,7 @@ gs_refine_item_pixbuf (GsPlugin *plugin, GsApp *app, AsApp *item)
icon = as_app_get_icon_for_size (item, 64, 64);
if (icon == NULL) {
g_warning ("failed to find cached icon %s",
- as_icon_get_name (icon));
+ as_app_get_id (item));
return;
}
if (!as_icon_load (icon, AS_ICON_LOAD_FLAG_SEARCH_SIZE, &error)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]