From 03e6d710984502c5426c24f92c715476120b9f49 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Thu, 28 Jul 2016 00:59:37 +0800 Subject: Make mutool clean only iterate over valid link annotations. --- source/pdf/pdf-clean-file.c | 1 + 1 file changed, 1 insertion(+) 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--; } } -- cgit v1.2.3