aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libbb/lineedit.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index 20d75cf56..38d4c598d 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -651,7 +651,6 @@ static char *username_path_completion(char *ud)
651 if (*ud == '/') { /* "~/..." */ 651 if (*ud == '/') { /* "~/..." */
652 home = home_pwd_buf; 652 home = home_pwd_buf;
653 } else { 653 } else {
654#if !ENABLE_PLATFORM_MINGW32
655 /* "~user/..." */ 654 /* "~user/..." */
656 ud = strchr(ud, '/'); 655 ud = strchr(ud, '/');
657 *ud = '\0'; /* "~user" */ 656 *ud = '\0'; /* "~user" */
@@ -659,7 +658,6 @@ static char *username_path_completion(char *ud)
659 *ud = '/'; /* restore "~user/..." */ 658 *ud = '/'; /* restore "~user/..." */
660 if (entry) 659 if (entry)
661 home = entry->pw_dir; 660 home = entry->pw_dir;
662#endif
663 } 661 }
664 if (home) { 662 if (home) {
665 ud = concat_path_file(home, ud); 663 ud = concat_path_file(home, ud);