From 2b16dbd8f73269cb15ca61ece75cf8d2d196ed28 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 19 Sep 2017 17:17:12 +0200 Subject: Fix 698558: Handle non-tags in tag name comparisons. Use fz_xml_is_tag instead of fz_xml_tag && !strcmp idiom. --- source/xps/xps-resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/xps/xps-resource.c') diff --git a/source/xps/xps-resource.c b/source/xps/xps-resource.c index c2292e60..8e81ab83 100644 --- a/source/xps/xps-resource.c +++ b/source/xps/xps-resource.c @@ -84,7 +84,7 @@ xps_parse_remote_resource_dictionary(fz_context *ctx, xps_document *doc, char *b if (!xml) return NULL; - if (strcmp(fz_xml_tag(xml), "ResourceDictionary")) + if (!fz_xml_is_tag(xml, "ResourceDictionary")) { fz_drop_xml(ctx, xml); fz_throw(ctx, FZ_ERROR_GENERIC, "expected ResourceDictionary element"); -- cgit v1.2.3