From: Pierre Habouzit Date: Mon, 28 May 2007 11:37:25 +0000 (+0200) Subject: completely stupid mistake. X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=3187ee0f1c5d5661eec8aa7c663aaaf42bcd5f9c;p=apps%2Fmadmutt.git completely stupid mistake. --- 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;