ck_bag: Initialize n_entries.

ck_pring
Samy Al Bahra 13 years ago
parent fdce6fcc30
commit 8a3c4786a8

@ -146,6 +146,7 @@ ck_bag_iterator_init(ck_bag_iterator_t *iterator, ck_bag_t *bag)
iterator->block = ck_pr_load_ptr(&bag->head);
iterator->index = 0;
iterator->n_entries = 0;
if (iterator->block != NULL)
iterator->n_entries = ck_bag_block_count(iterator->block);

Loading…
Cancel
Save