fix journalctl regression (#15099)
authorGeorg Müller <georgmueller@gmx.net>
Thu, 12 Mar 2020 19:02:21 +0000 (20:02 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 18 Mar 2020 19:30:47 +0000 (20:30 +0100)
commite8df08cfdb20e31066559c53420d7fd56b31ec01
tree1c186a54e4d57f3c77c6cb29c3ae95618de556d6
parenteb3a38cc23b2481d3991429a9e0e09e82d6b5b2c
fix journalctl regression (#15099)

This regression was introduced in #14913.

The current_file variable can be NULL, as, for example, with the
following commands:

* journalctl --list-boots
* journalctl -b -1 --no-pager

Since current_file is only checked for pointer equality with f, removing
the assertion is safe here.

(cherry picked from commit 8d0726fcd7b72f2a6f75dd731cbf7c8d4df107ef)
src/journal/sd-journal.c