aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ck_epoch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ck_epoch.c b/src/ck_epoch.c
index 7cddfa7597c6..a0e9180a1fdc 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) {