mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
sd-journal: change check to assert
As of 0f99f74a14 'sd-journal: verify that object start with the field
name' this condition should never happen.
This commit is contained in:
@@ -838,8 +838,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