diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2020-12-16 10:01:21 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2020-12-16 10:01:21 +0100 |
commit | eaced1ec85315b9e11226f9a4ab935066e6946a0 (patch) | |
tree | bea583562fd97d915c4904b345131773b8d45819 /libbb | |
parent | 8baa643a3445882ec9c39dfcabb7374081c13aee (diff) | |
download | busybox-eaced1ec85315b9e11226f9a4ab935066e6946a0.tar.gz |
lineedit: remove ->path_lookup if ash is not configured
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/lineedit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c index 5eb701f00..1a3f29656 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c @@ -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=":"? */ |