summaryrefslogtreecommitdiff
path: root/apps/pdfshow.c
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2010-06-21 16:23:32 +0200
committerTor Andersson <tor@ghostscript.com>2010-06-21 16:23:32 +0200
commit17d2a8b03562410e644d55c0452c63c142d9b333 (patch)
treec19113375ac1bdd9c659cda40c1497e013990111 /apps/pdfshow.c
parent1f36f832e475ea995e978b1d12998dc3071d8410 (diff)
downloadmupdf-17d2a8b03562410e644d55c0452c63c142d9b333.tar.xz
Preload page tree into an array to avoid unnecessary linear searching when looking for a given page.
Diffstat (limited to 'apps/pdfshow.c')
-rw-r--r--apps/pdfshow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/pdfshow.c b/apps/pdfshow.c
index 85b78d29..ba2d51f6 100644
--- a/apps/pdfshow.c
+++ b/apps/pdfshow.c
@@ -141,7 +141,7 @@ int main(int argc, char **argv)
if (fz_optind == argc)
showusage();
- openxref(argv[fz_optind++], password, 0);
+ openxref(argv[fz_optind++], password, 0, 0);
if (fz_optind == argc)
showtrailer();