diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2016-07-28 00:59:37 +0800 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2016-07-31 13:04:17 +0800 |
commit | 03e6d710984502c5426c24f92c715476120b9f49 (patch) | |
tree | 9bbcae2636c73d6182412ae26eccce7cb323828d | |
parent | 39b0f07dd960f34e7e6bf230ffc3d87c41ef0f2e (diff) | |
download | mupdf-03e6d710984502c5426c24f92c715476120b9f49.tar.xz |
Make mutool clean only iterate over valid link annotations.
-rw-r--r-- | source/pdf/pdf-clean-file.c | 1 |
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--; } } |