diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-04-09 10:47:55 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-04-09 10:47:55 +0100 |
commit | 10c3dc0da2d157723c6bfcdc81dd797430063366 (patch) | |
tree | a0b777d5b25c17e1cf3e69fef4c2ed8a5e434c0e /scripts | |
parent | 72f739984d85050422c64c5661cf0e750aa3d49d (diff) | |
download | mupdf-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.c | 1 |
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); |