diff options
author | Richard Hughes <richard@hughsie.com> | 2016-09-15 15:12:24 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2016-09-15 15:12:26 +0100 |
commit | 4b577d96e3502df08fa0598d878102dc69a1f4bb (patch) | |
tree | b6049ad70e530fbd88a48d47185e344bf46ea6b9 /libappstream-glib/as-utils.c | |
parent | 00748671c01c2cc903b2103ff6fe2e79cd8f7ffe (diff) | |
download | appstream-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.c | 3 |
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 = ""; |