diff options
Diffstat (limited to 'pdf/pdf_xref.c')
-rw-r--r-- | pdf/pdf_xref.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/pdf/pdf_xref.c b/pdf/pdf_xref.c index f93f7489..c5943d64 100644 --- a/pdf/pdf_xref.c +++ b/pdf/pdf_xref.c @@ -921,19 +921,16 @@ fz_error pdf_open_xref(pdf_xref **xrefp, char *filename, char *password) { fz_error error; - pdf_xref *xref; fz_stream *file; file = fz_open_file(filename); if (!file) return fz_throw("cannot open file '%s': %s", filename, strerror(errno)); - error = pdf_open_xref_with_stream(&xref, file, password); + error = pdf_open_xref_with_stream(xrefp, file, password); if (error) return fz_rethrow(error, "cannot load document '%s'", filename); fz_close(file); - - *xrefp = xref; return fz_okay; } |