mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
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.
This commit is contained in:
committed by
Yu Watanabe
parent
557b9716f6
commit
8d0726fcd7
@@ -440,7 +440,6 @@ _pure_ static int compare_with_location(const JournalFile *f, const Location *l,
|
||||
|
||||
assert(f);
|
||||
assert(l);
|
||||
assert(current_file);
|
||||
assert(f->location_type == LOCATION_SEEK);
|
||||
assert(IN_SET(l->type, LOCATION_DISCRETE, LOCATION_SEEK));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user