lineedit: remove ->path_lookup if ash is not configured

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2020-12-16 10:01:21 +01:00
parent 8baa643a34
commit eaced1ec85
2 changed files with 13 additions and 5 deletions

View File

@ -743,9 +743,11 @@ static int path_parse(char ***p)
char *tmp;
char **res;
#if EDITING_HAS_path_lookup
if (state->flags & WITH_PATH_LOOKUP)
pth = state->path_lookup;
else
#endif
pth = getenv("PATH");
/* PATH="" or PATH=":"? */