From 8a3c4786a88200819387e4d7e41fd81eb0941396 Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Wed, 9 May 2012 10:42:22 -0400 Subject: [PATCH] ck_bag: Initialize n_entries. --- include/ck_bag.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/ck_bag.h b/include/ck_bag.h index 590ca31..3c7fa81 100644 --- a/include/ck_bag.h +++ b/include/ck_bag.h @@ -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);