summaryrefslogtreecommitdiff
path: root/pdf/pdf_xref.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2011-04-07 14:39:17 +0200
committerTor Andersson <tor.andersson@artifex.com>2011-04-07 14:39:17 +0200
commit567ad2330ec8be4f23014a0a3e8dce11bcd1eada (patch)
tree0ca643fd1350da7355e7152fe460f2b9d855e285 /pdf/pdf_xref.c
parent6294585ac2dfe73654a9ac5965517219e4ea7ede (diff)
downloadmupdf-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.c5
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;
}