journal: Use separate variable for Data object in sd_journal_get_data()
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 17 Nov 2021 16:44:21 +0000 (16:44 +0000)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 13 Jan 2022 09:56:46 +0000 (10:56 +0100)
commitb660db074250953a1b70e0faaf57cd0f8c18bf3b
tree46a28d9aab3c3857cd3a684279133a4717fd9e8f
parent7dfd034b9c7bf782a2352f05ffc431b89ee57d17
journal: Use separate variable for Data object in sd_journal_get_data()

A little cleanup to make the next change easier. We're not moving to a
new Entry object in the for loop so there's no danger of changing the
Entry object window.

(cherry picked from commit 847c7ee8c3c1a6cecd02501562b1afd8dd3c51de)
(cherry picked from commit a1ca5320ec74f5112d32338e3061a34f17c4b954)
src/libsystemd/sd-journal/sd-journal.c