journal: Only move to objects when necessary
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 25 Jan 2022 11:50:40 +0000 (11:50 +0000)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 26 Jan 2022 20:16:00 +0000 (20:16 +0000)
commitded10e3a5f4c9a9fca9a57f5feb7e77db4155dbd
tree045ea02bcae657968b94f100ad2f8a7265732c7d
parentec50313d4e329de276240883d86d05168a4cf09f
journal: Only move to objects when necessary

Let's make sure we only move to objects when it's required. If "ret"
is NULL, the caller isn't interested in the actual object and the
function being called shouldn't move to it unless it has to
inspect/modify the object itself.
src/libsystemd/sd-journal/journal-file.c