summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/pdfclean.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/pdfclean.c b/apps/pdfclean.c
index cd5ed688..733bf056 100644
--- a/apps/pdfclean.c
+++ b/apps/pdfclean.c
@@ -240,7 +240,7 @@ static void renumberobjs(void)
/* Create new table for the reordered, compacted xref */
oldxref = xref->table;
xref->table = fz_malloc(xref->cap * sizeof (pdf_xrefentry));
- xref->table[0] = oldxref[num];
+ xref->table[0] = oldxref[0];
/* Move used objects into the new compacted xref */
newlen = 0;