diff options
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 976a7d87d..13cbb3229 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c | |||
@@ -974,8 +974,10 @@ static NOINLINE unsigned complete_cmd_dir_file(const char *command, int type) | |||
974 | if (type == FIND_EXE_ONLY && !dirbuf) { | 974 | if (type == FIND_EXE_ONLY && !dirbuf) { |
975 | # if ENABLE_FEATURE_SH_STANDALONE && NUM_APPLETS != 1 | 975 | # if ENABLE_FEATURE_SH_STANDALONE && NUM_APPLETS != 1 |
976 | const char *p = applet_names; | 976 | const char *p = applet_names; |
977 | # if ENABLE_PLATFORM_MINGW32 | ||
977 | const char *shpath = state->flags & WITH_PATH_LOOKUP ? | 978 | const char *shpath = state->flags & WITH_PATH_LOOKUP ? |
978 | state->path_lookup : NULL; | 979 | state->path_lookup : NULL; |
980 | # endif | ||
979 | while (*p) { | 981 | while (*p) { |
980 | if (strncmp(basecmd, p, baselen) == 0 && | 982 | if (strncmp(basecmd, p, baselen) == 0 && |
981 | is_applet_preferred(p, shpath)) | 983 | is_applet_preferred(p, shpath)) |