mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-04 15:58:29 +00:00
sd-journal: change check to assert
As of0f99f74a14'sd-journal: verify that object start with the field name' this condition should never happen. (cherry picked from commit853bd5cc72)
This commit is contained in:
@@ -779,8 +779,7 @@ static int list_boots(sd_journal *j) {
|
||||
return r;
|
||||
|
||||
SD_JOURNAL_FOREACH_UNIQUE(j, data, length) {
|
||||
if (length < strlen("_BOOT_ID="))
|
||||
continue;
|
||||
assert(startswith(data, "_BOOT_ID="));
|
||||
|
||||
if (!GREEDY_REALLOC(all_ids, allocated, count + 1))
|
||||
return log_oom();
|
||||
|
||||
Reference in New Issue
Block a user