From 4c634f3ad16dc793825793fba3f4811b1135c4e5 Mon Sep 17 00:00:00 2001 From: James Canete Date: Wed, 5 Apr 2006 23:56:19 +0000 Subject: [PATCH] fixed a bug in the hash where the first entry was never used in an iterator --- src/hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hash.c b/src/hash.c index 4391cfa..60192ba 100644 --- a/src/hash.c +++ b/src/hash.c @@ -217,7 +217,7 @@ hash_iterator_t *hash_iter_new(hash_t *table) iter->ref = 1; iter->table = hash_clone(table); iter->entry = NULL; - iter->index = 0; + iter->index = -1; } return iter;