summaryrefslogtreecommitdiffstats
path: root/alias.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 /alias.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 'alias.c')
-rw-r--r--alias.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/alias.c b/alias.c
index d9b52fa8..458461df 100644
--- a/alias.c
+++ b/alias.c
@@ -465,7 +465,7 @@ void mutt_alias_add_reverse (ALIAS *t)
for (ap = t->addr; ap; ap = ap->next)
{
if (!ap->group && ap->mailbox)
- hash_insert (ReverseAlias, ap->mailbox, ap, 1);
+ hash_insert (ReverseAlias, ap->mailbox, ap);
}
}