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>
Thu, 26 Mar 2020 13:27:26 +0000 (14:27 +0100)
commita713f52ddb09e8ef606c12e559d787355c67aa7e
tree04b35ca0ee1fbdb3bee20ea649fcd915c3bfdbd5
parent49e7c3b617613306211cc8e28e68d4e5be8fbec4
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)
(cherry picked from commit e8df08cfdb20e31066559c53420d7fd56b31ec01)
src/journal/sd-journal.c