fix journalctl regression (#15099)
authorGeorg Müller <georgmueller@gmx.net>
Thu, 12 Mar 2020 19:02:21 +0000 (20:02 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 13 Mar 2020 03:31:01 +0000 (12:31 +0900)
commit8d0726fcd7b72f2a6f75dd731cbf7c8d4df107ef
treeae8a6af689407579850ce359f17c8c2267e0f862
parent557b9716f6fc97afaf71597db509f104473e70a3
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.
src/journal/sd-journal.c