summaryrefslogtreecommitdiffstats
path: root/headers.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2017-02-10 13:01:21 -0800
committerKevin McCarthy <kevin@8t8.us>2017-02-10 13:01:21 -0800
commit43561289acfc4fae8494794bb94f6858c1d0d3db (patch)
treee157e0a76e04de66a086cb05a247d23fa46c5cf7 /headers.c
parent63153cc6ee725e1eec5c7df8ae0e518c148cd529 (diff)
Change "allow_dups" into a flag at hash creation.
Instead of having an "allow_dups" parameter for hash_insert(), add a flag, MUTT_HASH_ALLOW_DUPS, to hash_create(). Currently ReverseAlias, subj_hash, and thread_hash allow duplicate keys. Change those hashes to pass the flag at creation, and remove the last parameter from all callers of hash_insert().
Diffstat (limited to 'headers.c')
-rw-r--r--headers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/headers.c b/headers.c
index 0b4372d7..920bae54 100644
--- a/headers.c
+++ b/headers.c
@@ -242,7 +242,7 @@ static void label_ref_inc(CONTEXT *ctx, char *label)
if (!elem)
{
count = 1;
- hash_insert(ctx->label_hash, label, (void *)count, 0);
+ hash_insert(ctx->label_hash, label, (void *)count);
return;
}