summaryrefslogtreecommitdiff
path: root/source/xps/xps-resource.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-09-19 17:17:12 +0200
committerTor Andersson <tor.andersson@artifex.com>2017-09-19 17:19:41 +0200
commit2b16dbd8f73269cb15ca61ece75cf8d2d196ed28 (patch)
treec2077935809f028eccb5267c707c460310db4cf9 /source/xps/xps-resource.c
parent0f0fbc07d9be31f5e83ec5328d7311fdfd8328b1 (diff)
downloadmupdf-2b16dbd8f73269cb15ca61ece75cf8d2d196ed28.tar.xz
Fix 698558: Handle non-tags in tag name comparisons.
Use fz_xml_is_tag instead of fz_xml_tag && !strcmp idiom.
Diffstat (limited to 'source/xps/xps-resource.c')
-rw-r--r--source/xps/xps-resource.c2
1 files changed, 1 insertions, 1 deletions
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");