Use the default pager if the environment variable is blank.
PR: 37662 MFC after: 5 days
This commit is contained in:
parent
ec009cf024
commit
221e4bc443
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user