From 10c3dc0da2d157723c6bfcdc81dd797430063366 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Mon, 9 Apr 2012 10:47:55 +0100 Subject: 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. --- scripts/cmapdump.c | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts') 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); -- cgit v1.2.3