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-w32-eaced1ec85315b9e11226f9a4ab935066e6946a0.tar.gz
busybox-w32-eaced1ec85315b9e11226f9a4ab935066e6946a0.tar.bz2
busybox-w32-eaced1ec85315b9e11226f9a4ab935066e6946a0.zip
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)
743 char *tmp; 743 char *tmp;
744 char **res; 744 char **res;
745 745
746#if EDITING_HAS_path_lookup
746 if (state->flags & WITH_PATH_LOOKUP) 747 if (state->flags & WITH_PATH_LOOKUP)
747 pth = state->path_lookup; 748 pth = state->path_lookup;
748 else 749 else
750#endif
749 pth = getenv("PATH"); 751 pth = getenv("PATH");
750 752
751 /* PATH="" or PATH=":"? */ 753 /* PATH="" or PATH=":"? */