X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-lib%2Fhash.c;h=569ed305cd85ca059aae1c6654f83761fa554d56;hp=008c8fe58369802f16f04ceafbc17361e6fc3cb1;hb=3187ee0f1c5d5661eec8aa7c663aaaf42bcd5f9c;hpb=56ac9bea51f338d488828ad1114d58b4a9542209 diff --git a/lib-lib/hash.c b/lib-lib/hash.c index 008c8fe..569ed30 100644 --- a/lib-lib/hash.c +++ b/lib-lib/hash.c @@ -40,7 +40,7 @@ int hash_string(const unsigned char *s, int n) hash_t *hash_init(hash_t *table, int nelem, int allow_dup) { table->dupes = allow_dup; - table->nelem = MIN(nelem, 2); + table->nelem = MAX(nelem, 2); table->curnelem = 0; table->table = p_new(struct hash_elem *, table->nelem); return table;