fixed a bug in the hash where the first entry was never used in an iterator

This commit is contained in:
James Canete
2006-04-05 23:56:19 +00:00
parent 8c9e66b2da
commit 4c634f3ad1

View File

@@ -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;