diff options
author | eric <eric@FreeBSD.org> | 2002-08-27 09:31:27 +0000 |
---|---|---|
committer | eric <eric@FreeBSD.org> | 2002-08-27 09:31:27 +0000 |
commit | 7d9d298c394fb673e18ae4e695526f89d83b1c4e (patch) | |
tree | e4084f18483d12767f6037417085a98e8612113b /gnu/usr.bin/man | |
parent | 906476b28e6068732dc08a4e0b81542043c36a44 (diff) | |
download | FreeBSD-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.c | 2 |
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) |