summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-10-09 22:51:35 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-10-09 22:51:35 -0400
commit853bd5cc72a0d4cbdd07cc3cabc65bef333a0c71 (patch)
treeaee8f1ff5cd854646a334a9c0cdaf289687bcb07 /src
parent360af4cf6f18469df97c11af4cd5696e0ca8b3ef (diff)
sd-journal: change check to assert
As of 0f99f74a14 'sd-journal: verify that object start with the field name' this condition should never happen.
Diffstat (limited to 'src')
-rw-r--r--src/journal/journalctl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c
index feb53bd203..7f4bc3229c 100644
--- a/src/journal/journalctl.c
+++ b/src/journal/journalctl.c
@@ -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();