From: Daan De Meyer Date: Thu, 23 Feb 2023 14:40:38 +0000 (+0100) Subject: journal-file: Fix return value in bump_entry_array() X-Git-Tag: v254-rc1~1169 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0399902440fbaea5b163254f70be57dbedb7131e;p=thirdparty%2Fsystemd.git journal-file: Fix return value in bump_entry_array() --- diff --git a/src/libsystemd/sd-journal/journal-file.c b/src/libsystemd/sd-journal/journal-file.c index c4971a807c7..9921195ddce 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