From eaced1ec85315b9e11226f9a4ab935066e6946a0 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 16 Dec 2020 10:01:21 +0100 Subject: lineedit: remove ->path_lookup if ash is not configured Signed-off-by: Denys Vlasenko --- libbb/lineedit.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libbb/lineedit.c') 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 @@ 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=":"? */ -- cgit v1.1