diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-10-11 17:46:59 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-10-11 17:46:59 +0200 |
commit | 57c9e047819c839b6a208e99bf4d9f09d8c83c1e (patch) | |
tree | 38b3cee3035937eece06705143e13ab10a4311a2 /src/shared/pager.c | |
parent | 6e16066e8ecd92e69b8f1e4bad728ee5b4cb7d34 (diff) |
pager: tiny beautification
Diffstat (limited to 'src/shared/pager.c')
-rw-r--r-- | src/shared/pager.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/pager.c b/src/shared/pager.c index a2524d4420..09672a4abf 100644 --- a/src/shared/pager.c +++ b/src/shared/pager.c @@ -36,6 +36,7 @@ #include "process-util.h" #include "signal-util.h" #include "string-util.h" +#include "strv.h" #include "terminal-util.h" static pid_t pager_pid = 0; @@ -71,7 +72,7 @@ int pager_open(bool no_pager, bool jump_to_end) { pager = getenv("PAGER"); /* If the pager is explicitly turned off, honour it */ - if (pager && (pager[0] == 0 || streq(pager, "cat"))) + if (pager && STR_IN_SET(pager, "", "cat")) return 0; /* Determine and cache number of columns before we spawn the |