diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index 15f3f0e025..898e08774a 100644 --- a/src/journal/journalctl.c +++ b/src/journal/journalctl.c @@ -344,7 +344,7 @@ static int help_facilities(void) { for (int i = 0; i < LOG_NFACILITIES; i++) { _cleanup_free_ char *t = NULL; - if (log_facility_unshifted_to_string_alloc(i, &t)) + if (log_facility_unshifted_to_string_alloc(i, &t) < 0) return log_oom(); puts(t); }