sd-journal: change check to assert

As of 0f99f74a14 'sd-journal: verify that object start with the field
name' this condition should never happen.

(cherry picked from commit 853bd5cc72)
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2014-10-26 18:23:46 -04:00
parent 078634bd4d
commit 2bbdcbc828
+1 -2
View File
@@ -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();