summaryrefslogtreecommitdiff
path: root/source/xps
diff options
context:
space:
mode:
Diffstat (limited to 'source/xps')
-rw-r--r--source/xps/xps-common.c2
-rw-r--r--source/xps/xps-doc.c1
-rw-r--r--source/xps/xps-zip.c2
3 files changed, 1 insertions, 4 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);
}
diff --git a/source/xps/xps-doc.c b/source/xps/xps-doc.c
index 097392e8..86d67d4a 100644
--- a/source/xps/xps-doc.c
+++ b/source/xps/xps-doc.c
@@ -510,7 +510,6 @@ xps_load_page(xps_document *doc, int number)
}
fz_throw(doc->ctx, FZ_ERROR_GENERIC, "cannot find page %d", number + 1);
- return NULL;
}
fz_rect *
diff --git a/source/xps/xps-zip.c b/source/xps/xps-zip.c
index c9dc9840..3aca8cdb 100644
--- a/source/xps/xps-zip.c
+++ b/source/xps/xps-zip.c
@@ -406,7 +406,6 @@ xps_read_zip_part(xps_document *doc, char *partname)
}
fz_throw(doc->ctx, FZ_ERROR_GENERIC, "cannot find part '%s'", partname);
- return NULL;
}
static int
@@ -502,7 +501,6 @@ xps_read_dir_part(xps_document *doc, char *name)
}
fz_throw(doc->ctx, FZ_ERROR_GENERIC, "cannot find part '%s'", name);
- return NULL;
}
static int