diff options
author | Tor Andersson <tor@ghostscript.com> | 2008-08-16 12:41:48 +0200 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2008-08-16 12:41:48 +0200 |
commit | bb469b12bff616b9f4492958012819c19d82bbb2 (patch) | |
tree | 032acfc314fde0b60a2e71190903984503529891 /mupdf/pdf_open.c | |
parent | a27aa33c254a0054af72147a5ce05d106df15251 (diff) | |
download | mupdf-bb469b12bff616b9f4492958012819c19d82bbb2.tar.xz |
Initialize entire xref table to cap, not just len.
Diffstat (limited to 'mupdf/pdf_open.c')
-rw-r--r-- | mupdf/pdf_open.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mupdf/pdf_open.c b/mupdf/pdf_open.c index acd65caf..acd19e1f 100644 --- a/mupdf/pdf_open.c +++ b/mupdf/pdf_open.c @@ -697,7 +697,7 @@ pdf_loadxref(pdf_xref *xref, char *filename) goto cleanup; } - for (i = 0; i < xref->len; i++) + for (i = 0; i < xref->cap; i++) { xref->table[i].ofs = 0; xref->table[i].gen = 0; |