diff --git a/lib/gs-appstream.c b/lib/gs-appstream.c index 3cb8bda082cbd284e902af50f79dd891fa084b27..93ea034d0408edc8348b7303a78175c21d648a93 100644 --- a/lib/gs-appstream.c +++ b/lib/gs-appstream.c @@ -203,7 +203,10 @@ gs_appstream_build_icon_prefix (XbNode *component) /* check format */ path = g_strsplit (tmp, "/", -1); npath = g_strv_length (path); - if (npath < 3 || !(g_strcmp0 (path[npath-2], "xmls") == 0 || g_strcmp0 (path[npath-2], "yaml") == 0)) + if (npath < 3 || + !(g_strcmp0 (path[npath-2], "xmls") == 0 || + g_strcmp0 (path[npath-2], "yaml") == 0 || + g_strcmp0 (path[npath-2], "xml") == 0)) return NULL; /* fix the new path */