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;