summaryrefslogtreecommitdiff
path: root/apps/pdfclean.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/pdfclean.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/pdfclean.c')
-rw-r--r--apps/pdfclean.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/pdfclean.c b/apps/pdfclean.c
index a6cf402c..021eb2bc 100644
--- a/apps/pdfclean.c
+++ b/apps/pdfclean.c
@@ -295,7 +295,7 @@ int main(int argc, char **argv)
if (argc - fz_optind > 0)
subset = 1;
- openxref(infile, password, 0);
+ openxref(infile, password, 0, 0);
out = fopen(outfile, "wb");
if (!out)