summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-utils.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2016-09-15 15:12:24 +0100
committerRichard Hughes <richard@hughsie.com>2016-09-15 15:12:26 +0100
commit4b577d96e3502df08fa0598d878102dc69a1f4bb (patch)
treeb6049ad70e530fbd88a48d47185e344bf46ea6b9 /libappstream-glib/as-utils.c
parent00748671c01c2cc903b2103ff6fe2e79cd8f7ffe (diff)
downloadappstream-glib-4b577d96e3502df08fa0598d878102dc69a1f4bb.tar.gz
trivial: Fix building AppStream metadata when using local files
Since we fixed the icon kind issue we just have to be a bit more careful when reading out what name to use.
Diffstat (limited to 'libappstream-glib/as-utils.c')
-rw-r--r--libappstream-glib/as-utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libappstream-glib/as-utils.c b/libappstream-glib/as-utils.c
index 6ec25cf..2241911 100644
--- a/libappstream-glib/as-utils.c
+++ b/libappstream-glib/as-utils.c
@@ -892,6 +892,9 @@ as_utils_find_icon_filename_full (const gchar *destdir,
NULL };
g_autofree gchar *prefix = NULL;
+ g_return_val_if_fail (destdir != NULL, NULL);
+ g_return_val_if_fail (search != NULL, NULL);
+
/* fallback */
if (destdir == NULL)
destdir = "";