diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/common/pdfapp.c | 5 | ||||
-rw-r--r-- | apps/common/pdftool.c | 5 |
2 files changed, 2 insertions, 8 deletions
diff --git a/apps/common/pdfapp.c b/apps/common/pdfapp.c index 935f79f4..96eeae00 100644 --- a/apps/common/pdfapp.c +++ b/apps/common/pdfapp.c @@ -77,10 +77,7 @@ void pdfapp_open(pdfapp_t *app, char *filename) app->filename = filename; - error = pdf_newxref(&app->xref); - if (error) - pdfapp_error(app, error); - + app->xref = pdf_newxref(); error = pdf_loadxref(app->xref, filename); if (error) { 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) { |