summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/man
diff options
context:
space:
mode:
authoreric <eric@FreeBSD.org>2002-08-27 09:31:27 +0000
committereric <eric@FreeBSD.org>2002-08-27 09:31:27 +0000
commit7d9d298c394fb673e18ae4e695526f89d83b1c4e (patch)
treee4084f18483d12767f6037417085a98e8612113b /gnu/usr.bin/man
parent906476b28e6068732dc08a4e0b81542043c36a44 (diff)
downloadFreeBSD-src-7d9d298c394fb673e18ae4e695526f89d83b1c4e.zip
FreeBSD-src-7d9d298c394fb673e18ae4e695526f89d83b1c4e.tar.gz
Use the default pager if the environment variable is blank.
PR: 37662 MFC after: 5 days
Diffstat (limited to 'gnu/usr.bin/man')
-rw-r--r--gnu/usr.bin/man/man/man.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/man/man/man.c b/gnu/usr.bin/man/man/man.c
index 77165d2..0e737f3 100644
--- a/gnu/usr.bin/man/man/man.c
+++ b/gnu/usr.bin/man/man/man.c
@@ -459,7 +459,7 @@ man_getopt (argc, argv)
#endif /* __FreeBSD__ */
if (pager == NULL || *pager == '\0')
- if ((pager = getenv ("PAGER")) == NULL)
+ if ((pager = getenv ("PAGER")) == NULL || *pager == NULL)
pager = strdup (PAGER);
if (debug)
OpenPOWER on IntegriCloud