Use the default pager if the environment variable is blank.

PR:		37662
MFC after:	5 days
This commit is contained in:
Eric Melville 2002-08-27 09:31:27 +00:00
parent ec009cf024
commit 221e4bc443

View File

@ -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)