diff --git a/src/libsystemd/sd-journal/journal-file.c b/src/libsystemd/sd-journal/journal-file.c index c4971a807c..9921195ddc 100644 --- a/src/libsystemd/sd-journal/journal-file.c +++ b/src/libsystemd/sd-journal/journal-file.c @@ -2516,7 +2516,8 @@ static int bump_entry_array( if (direction == DIRECTION_DOWN) { assert(o); - return le64toh(o->entry_array.next_entry_array_offset); + *ret = le64toh(o->entry_array.next_entry_array_offset); + return 0; } /* Entry array chains are a singly linked list, so to find the previous array in the chain, we have