Fix bug from last commit: don't SEGV when reading as part of a pipe.

This commit is contained in:
Tim Vanderhoek 1998-07-04 01:22:07 +00:00
parent ad12aad64b
commit 7b31132c01

View File

@ -512,7 +512,7 @@ again: if (sigs)
number, wsearch);
break;
case A_HELP: /* help */
if (!strcmp(_PATH_HELPFILE, av[curr_ac])) {
if (ac > 0 && !strcmp(_PATH_HELPFILE, av[curr_ac])) {
error("Already viewing help.");
break;
}