summaryrefslogtreecommitdiff
path: root/apps/common/pdftool.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/common/pdftool.c')
-rw-r--r--apps/common/pdftool.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/common/pdftool.c b/apps/common/pdftool.c
index 772fc9a0..4d846df5 100644
--- a/apps/common/pdftool.c
+++ b/apps/common/pdftool.c
@@ -33,10 +33,7 @@ void openxref(char *filename, char *password, int dieonbadpass)
else
basename++;
- error = pdf_newxref(&xref);
- if (error)
- die(error);
-
+ xref = pdf_newxref();
error = pdf_loadxref(xref, filename);
if (error)
{