summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/fitz/hash.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/fitz/hash.c b/source/fitz/hash.c
index fa7ce93f..af95ba9c 100644
--- a/source/fitz/hash.c
+++ b/source/fitz/hash.c
@@ -121,7 +121,10 @@ do_hash_insert(fz_context *ctx, fz_hash_table *table, const void *key, void *val
if (memcmp(key, ents[pos].key, table->keylen) == 0)
{
/* This is legal, but should rarely happen. */
- fz_warn(ctx, "assert: overwrite hash slot");
+ if (val != ents[pos].val)
+ fz_warn(ctx, "assert: overwrite hash slot with different value!");
+ else
+ fz_warn(ctx, "assert: overwrite hash slot with same value");
return ents[pos].val;
}