1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-29 21:55:36 +03:00

journal-file: Fix return value in bump_entry_array()

This commit is contained in:
Daan De Meyer 2023-02-23 15:40:38 +01:00 committed by Luca Boccassi
parent 43823dfefd
commit 0399902440

View File

@ -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