summaryrefslogtreecommitdiff
path: root/source/xps/xps-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/xps/xps-common.c')
-rw-r--r--source/xps/xps-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/xps/xps-common.c b/source/xps/xps-common.c
index ec16d879..b780f428 100644
--- a/source/xps/xps-common.c
+++ b/source/xps/xps-common.c
@@ -18,7 +18,7 @@ xps_lookup_alternate_content(fz_xml *node)
char list[64];
char *next = list, *item;
fz_strlcpy(list, fz_xml_att(node, "Requires"), sizeof(list));
- while ((item = fz_strsep(&next, " \t\r\n")) && (!*item || !strcmp(item, "xps")));
+ while ((item = fz_strsep(&next, " \t\r\n")) != NULL && (!*item || !strcmp(item, "xps")));
if (!item)
return fz_xml_down(node);
}