diff options
-rw-r--r-- | c_src/cmd_list_journal.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/c_src/cmd_list_journal.c b/c_src/cmd_list_journal.c index 7b0008de..1f97bc85 100644 --- a/c_src/cmd_list_journal.c +++ b/c_src/cmd_list_journal.c @@ -222,7 +222,8 @@ static void journal_entries_print(struct bch_fs *c, unsigned nr_entries, struct jset_entry *entry = p->j.start; struct jset_entry *end = vstruct_last(&p->j); - while (entry != end) { + while (entry < end && + vstruct_next(entry) <= end) { /* * log entries denote the start of a new transaction |