summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-08-17 12:36:39 +0200
committerRobin Watts <robin.watts@artifex.com>2012-08-23 15:26:59 +0100
commit90aba2b728774bf3816562ad5e5a37eaab70a1a7 (patch)
treeb43284f5b1441cff1a3f6e8852731a16783c1fc8 /apps
parentc92e7f54f78cf85f1f82ff423ec2b79809fcfdfd (diff)
downloadmupdf-90aba2b728774bf3816562ad5e5a37eaab70a1a7.tar.xz
Mupdfinfo: Cope with zero page pdf files.
Diffstat (limited to 'apps')
-rw-r--r--apps/mupdfinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/mupdfinfo.c b/apps/mupdfinfo.c
index 279298c2..6c0a31d7 100644
--- a/apps/mupdfinfo.c
+++ b/apps/mupdfinfo.c
@@ -901,7 +901,7 @@ showinfo(char *filename, int show, char *pagelist)
pagecount = pdf_count_pages(xref);
spec = fz_strsep(&pagelist, ",");
- while (spec)
+ while (spec && pagecount)
{
dash = strchr(spec, '-');