diff --git a/src/ck_epoch.c b/src/ck_epoch.c index 7cddfa7..a0e9180 100644 --- a/src/ck_epoch.c +++ b/src/ck_epoch.c @@ -309,11 +309,12 @@ ck_epoch_scan(struct ck_epoch *global, { ck_stack_entry_t *cursor; - *af = false; if (cr == NULL) { cursor = CK_STACK_FIRST(&global->records); + *af = false; } else { cursor = &cr->record_next; + *af = true; } while (cursor != NULL) {