Fix bug from last commit: don't SEGV when reading as part of a pipe.
This commit is contained in:
parent
ad12aad64b
commit
7b31132c01
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user