summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fitz/base_hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fitz/base_hash.c b/fitz/base_hash.c
index 0fda86cd..76c95304 100644
--- a/fitz/base_hash.c
+++ b/fitz/base_hash.c
@@ -127,7 +127,7 @@ do_hash_insert(fz_context *ctx, fz_hash_table *table, void *key, void *val)
if (memcmp(key, ents[pos].key, table->keylen) == 0)
{
fz_warn(ctx, "assert: overwrite hash slot");
- return ents[pos].val = val;
+ return ents[pos].val;
}
pos = (pos + 1) % size;