summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-clean-file.c
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2016-07-28 00:59:37 +0800
committerSebastian Rasmussen <sebras@gmail.com>2016-07-31 13:04:17 +0800
commit03e6d710984502c5426c24f92c715476120b9f49 (patch)
tree9bbcae2636c73d6182412ae26eccce7cb323828d /source/pdf/pdf-clean-file.c
parent39b0f07dd960f34e7e6bf230ffc3d87c41ef0f2e (diff)
downloadmupdf-03e6d710984502c5426c24f92c715476120b9f49.tar.xz
Make mutool clean only iterate over valid link annotations.
Diffstat (limited to 'source/pdf/pdf-clean-file.c')
-rw-r--r--source/pdf/pdf-clean-file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/pdf/pdf-clean-file.c b/source/pdf/pdf-clean-file.c
index b261aa91..15d55b10 100644
--- a/source/pdf/pdf-clean-file.c
+++ b/source/pdf/pdf-clean-file.c
@@ -299,6 +299,7 @@ static void retainpages(fz_context *ctx, globals *glo, int argc, char **argv)
{
/* Remove this annotation */
pdf_array_delete(ctx, annots, j);
+ len--;
j--;
}
}