summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/cmapdump.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/cmapdump.c b/scripts/cmapdump.c
index b245fd48..7f031b5f 100644
--- a/scripts/cmapdump.c
+++ b/scripts/cmapdump.c
@@ -89,8 +89,11 @@ main(int argc, char **argv)
if (!fi)
fz_error_make("cmapdump: could not open input file '%s'\n", argv[i]);
- error = pdf_parse_cmap(&cmap, fi);
- if (error)
+ fz_try(ctx)
+ {
+ cmap = pdf_parse_cmap(fi);
+ }
+ fz_catch(ctx)
{
fz_error_handle(error, "cmapdump: could not parse input cmap '%s'\n", argv[i]);
return 1;