summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/cmapdump.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/cmapdump.c b/scripts/cmapdump.c
index 53247339..57cfe54b 100644
--- a/scripts/cmapdump.c
+++ b/scripts/cmapdump.c
@@ -85,6 +85,7 @@ main(int argc, char **argv)
clean(name);
fi = fz_open_file(ctx, argv[i]);
+ fz_lock_stream(fi);
cmap = pdf_load_cmap(ctx, fi);
fz_close(fi);