From 4eb7b14996bab7523eff494cb90128c1e19f1822 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Sun, 24 Jan 2016 21:26:40 +0100 Subject: [PATCH] update-appstream: Fix crash in case there are no 128x128 icons --- common/xdg-app-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/xdg-app-utils.c b/common/xdg-app-utils.c index 30055d0b..fbe0be1d 100644 --- a/common/xdg-app-utils.c +++ b/common/xdg-app-utils.c @@ -1652,7 +1652,7 @@ extract_appstream (OstreeRepo *repo, g_print ("Error copying 64x64 icon: %s\n", my_error->message); g_clear_error (&my_error); } - if (!copy_icon (id, root, dest, "128x128", NULL)) + if (!copy_icon (id, root, dest, "128x128", &my_error)) { g_print ("Error copying 128x12 icon: %s\n", my_error->message); g_clear_error (&my_error);