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.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/common/pdftool.c b/apps/common/pdftool.c
index 4d846df5..fdabc2d6 100644
--- a/apps/common/pdftool.c
+++ b/apps/common/pdftool.c
@@ -24,7 +24,6 @@ void setcleanup(void (*func)(void))
void openxref(char *filename, char *password, int dieonbadpass)
{
fz_error error;
- fz_obj *obj;
int okay;
basename = strrchr(filename, '/');
@@ -56,13 +55,11 @@ void openxref(char *filename, char *password, int dieonbadpass)
die(fz_throw("invalid password"));
}
- obj = fz_dictgets(xref->trailer, "Root");
- xref->root = fz_resolveindirect(obj);
+ xref->root = fz_dictgets(xref->trailer, "Root");
if (xref->root)
fz_keepobj(xref->root);
- obj = fz_dictgets(xref->trailer, "Info");
- xref->info = fz_resolveindirect(obj);
+ xref->info = fz_dictgets(xref->trailer, "Info");
if (xref->info)
fz_keepobj(xref->info);