diff options
author | Richard Hughes <richard@hughsie.com> | 2014-06-24 16:59:13 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2014-06-24 16:59:13 +0100 |
commit | c8a86ccbc34b7af0a799a7552851925548f271f6 (patch) | |
tree | 6c834eebab7c0bade621985a097ae726c05fc947 | |
parent | 409b7420d098e23620a2ac00725c4fa29f94b899 (diff) | |
download | appstream-glib-c8a86ccbc34b7af0a799a7552851925548f271f6.tar.gz |
Allow empty URL sections
-rw-r--r-- | libappstream-glib/as-app-validate.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libappstream-glib/as-app-validate.c b/libappstream-glib/as-app-validate.c index 96d6d02..0c6e2f4 100644 --- a/libappstream-glib/as-app-validate.c +++ b/libappstream-glib/as-app-validate.c @@ -1001,6 +1001,8 @@ as_app_validate (AsApp *app, AsAppValidateFlags flags, GError **error) "<url> type invalid"); } tmp = g_hash_table_lookup (urls, key); + if (tmp == NULL || tmp[0] == '\0') + continue; if (!g_str_has_prefix (tmp, "http://") && !g_str_has_prefix (tmp, "https://")) { ai_app_validate_add (probs, |