]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journal-file: Fix return value in bump_entry_array()
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 23 Feb 2023 14:40:38 +0000 (15:40 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 23 Feb 2023 19:11:25 +0000 (19:11 +0000)
src/libsystemd/sd-journal/journal-file.c

index c4971a807c79db4d664b42b092db340ff1cdd886..9921195ddce0d9445e333e526fc5af69444b1661 100644 (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