diff options
Diffstat (limited to 'src/journal/journald-kmsg.c')
-rw-r--r-- | src/journal/journald-kmsg.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/journal/journald-kmsg.c b/src/journal/journald-kmsg.c index c4216c4043..80bd9cd193 100644 --- a/src/journal/journald-kmsg.c +++ b/src/journal/journald-kmsg.c @@ -201,8 +201,7 @@ static void dev_kmsg_record(Server *s, const char *p, size_t l) { *e = 0; - m = cunescape_length_with_prefix(k, e - k, "_KERNEL_"); - if (!m) + if (cunescape_length_with_prefix(k, e - k, "_KERNEL_", UNESCAPE_RELAX, &m) < 0) break; if (startswith(m, "_KERNEL_DEVICE=")) @@ -299,8 +298,7 @@ static void dev_kmsg_record(Server *s, const char *p, size_t l) { } } - message = cunescape_length_with_prefix(p, pl, "MESSAGE="); - if (message) + if (cunescape_length_with_prefix(p, pl, "MESSAGE=", UNESCAPE_RELAX, &message) >= 0) IOVEC_SET_STRING(iovec[n++], message); server_dispatch_message(s, iovec, n, ELEMENTSOF(iovec), NULL, NULL, NULL, 0, NULL, priority, 0); |