diff options
author | Robin Watts <robin.watts@artifex.com> | 2013-03-22 00:58:00 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-03-22 00:59:31 +0000 |
commit | bf08301ded2f44e33bebf5572587a9c7102dcc98 (patch) | |
tree | f5a72263f6df1734995ce9f4f16538aaa451332c /fitz/res_store.c | |
parent | e219f89eab0e937b14ac2d8838296078f5fa2b35 (diff) | |
download | mupdf-bf08301ded2f44e33bebf5572587a9c7102dcc98.tar.xz |
Fix store debugging fns so that all output goes to the same file.
Diffstat (limited to 'fitz/res_store.c')
-rw-r--r-- | fitz/res_store.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fitz/res_store.c b/fitz/res_store.c index a7d780b2..f9f305d9 100644 --- a/fitz/res_store.c +++ b/fitz/res_store.c @@ -363,7 +363,7 @@ fz_remove_item(fz_context *ctx, fz_store_free_fn *free, void *key, fz_store_type fz_item *item; fz_store *store = ctx->store; int drop; - fz_store_hash hash; + fz_store_hash hash = { NULL }; int use_hash = 0; if (type->make_hash_key) @@ -471,7 +471,7 @@ fz_print_store(fz_context *ctx, FILE *out) next->val->refs++; fprintf(out, "store[*][refs=%d][size=%d] ", item->val->refs, item->size); fz_unlock(ctx, FZ_LOCK_ALLOC); - item->type->debug(item->key); + item->type->debug(out, item->key); fprintf(out, " = %p\n", item->val); fz_lock(ctx, FZ_LOCK_ALLOC); if (next) |