commit | eaced1ec85315b9e11226f9a4ab935066e6946a0 | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <vda.linux@googlemail.com> | Wed Dec 16 10:01:21 2020 +0100 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Wed Dec 16 10:01:21 2020 +0100 |
tree | bea583562fd97d915c4904b345131773b8d45819 | |
parent | 8baa643a3445882ec9c39dfcabb7374081c13aee [diff] [blame] |
lineedit: remove ->path_lookup if ash is not configured Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/libbb/lineedit.c b/libbb/lineedit.c index 5eb701f..1a3f296 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c
@@ -743,9 +743,11 @@ 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=":"? */