aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2020-12-16 10:01:21 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2020-12-16 10:01:21 +0100
commiteaced1ec85315b9e11226f9a4ab935066e6946a0 (patch)
treebea583562fd97d915c4904b345131773b8d45819 /libbb
parent8baa643a3445882ec9c39dfcabb7374081c13aee (diff)
downloadbusybox-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.c2
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=":"? */