From 3187ee0f1c5d5661eec8aa7c663aaaf42bcd5f9c Mon Sep 17 00:00:00 2001 From: Pierre Habouzit Date: Mon, 28 May 2007 13:37:25 +0200 Subject: [PATCH] completely stupid mistake. --- lib-lib/hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1