diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-04-07 14:39:17 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-04-07 14:39:17 +0200 |
commit | 567ad2330ec8be4f23014a0a3e8dce11bcd1eada (patch) | |
tree | 0ca643fd1350da7355e7152fe460f2b9d855e285 /pdf/pdf_xref.c | |
parent | 6294585ac2dfe73654a9ac5965517219e4ea7ede (diff) | |
download | mupdf-567ad2330ec8be4f23014a0a3e8dce11bcd1eada.tar.xz |
Use fz_stream instead of FILE* to open XPS files.
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; } |