summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-04-09 10:47:55 +0100
committerRobin Watts <robin.watts@artifex.com>2012-04-09 10:47:55 +0100
commit10c3dc0da2d157723c6bfcdc81dd797430063366 (patch)
treea0b777d5b25c17e1cf3e69fef4c2ed8a5e434c0e /scripts
parent72f739984d85050422c64c5661cf0e750aa3d49d (diff)
downloadmupdf-10c3dc0da2d157723c6bfcdc81dd797430063366.tar.xz
Bug 692977: Stop harmless thread debugging messages during cmapdump
If compiled with -DDEBUG, cmapdump throws a large number of warnings regarding thread locking. These are harmless and can be ignored, but are, nonetheless, not pretty. Fixed here. Thanks to Bas Weelinck for the report.
Diffstat (limited to 'scripts')
-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);