summaryrefslogtreecommitdiff
path: root/apps/pdfclean.c
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@hotmail.com>2010-08-07 14:28:25 +0000
committerSebastian Rasmussen <sebras@hotmail.com>2010-08-07 14:28:25 +0000
commit14c3cd048bb7a4b87a603d35b8d1ceba7920432f (patch)
tree5ba90fae7e2be4ef8752974a3aa9696096451317 /apps/pdfclean.c
parent1f2595c8c65b543f0c7a071fa30ec72ad7a67d2f (diff)
downloadmupdf-14c3cd048bb7a4b87a603d35b8d1ceba7920432f.tar.xz
Fix typo in pdfclean that caused a segfault.
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 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;