diff options
Diffstat (limited to 'src/core/shutdown.c')
-rw-r--r-- | src/core/shutdown.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/core/shutdown.c b/src/core/shutdown.c index fe7a0739db..10a52bd117 100644 --- a/src/core/shutdown.c +++ b/src/core/shutdown.c @@ -145,13 +145,7 @@ int main(int argc, char *argv[]) { size_t l; FOREACH_WORD_QUOTED(w, l, line, state) { - _cleanup_free_ char *word; - - word = strndup(w, l); - if (!word) - break; - - if (streq(word, "quiet")) { + if (l == 5 && memcmp(w, "quiet", 5) == 0) { log_set_max_level(LOG_WARNING); break; } |