sd-journal: make bump_entry_array() return positive when a valid offset found
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 26 Sep 2023 16:14:58 +0000 (01:14 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 30 Sep 2023 11:10:15 +0000 (20:10 +0900)
commitb7264911aa91ce1aede9da621cb8aa7eb0f88c2b
tree55b8ead867b65fe8062a852609fb76649790ebb9
parenteb6ba873447e378d40a13dfda764d2772ce36389
sd-journal: make bump_entry_array() return positive when a valid offset found

When it returns 0 offset, then the subsequent
journal_file_move_to_object() will fail. Let's return
generic_array_get() earlier in such situation.
src/libsystemd/sd-journal/journal-file.c