summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-10-11 13:49:15 -0400
committerGitHub <noreply@github.com>2016-10-11 13:49:15 -0400
commit56b4c80b429d7707af36f1f9b8192c9a51b43e5f (patch)
tree8f5a1195aa2013d9481ba202f7e76a206e6a24e2 /src/shared
parentb744e8937ce603090a9bf64ac7d8cc2c1a29e4f0 (diff)
parentf4c9356d133a7453dc9ed4e499a3edeb62c90fa9 (diff)
Merge pull request #4348 from poettering/docfixes
Various smaller documentation fixes.
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/pager.c3
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