aboutsummaryrefslogtreecommitdiff
path: root/libbb/lineedit.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/lineedit.c')
-rw-r--r--libbb/lineedit.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index 89178bbc3..6513219ce 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -798,11 +798,7 @@ static int path_parse(char ***p)
798 tmp = (char*)pth; 798 tmp = (char*)pth;
799 npth = 1; /* path component count */ 799 npth = 1; /* path component count */
800 while (1) { 800 while (1) {
801#if ENABLE_PLATFORM_MINGW32 801 tmp = strchr(tmp, PATH_SEP);
802 tmp = (char *)next_path_sep(tmp);
803#else
804 tmp = strchr(tmp, ':');
805#endif
806 if (!tmp) 802 if (!tmp)
807 break; 803 break;
808 tmp++; 804 tmp++;
@@ -815,11 +811,7 @@ static int path_parse(char ***p)
815 res[0] = tmp = xstrdup(pth); 811 res[0] = tmp = xstrdup(pth);
816 npth = 1; 812 npth = 1;
817 while (1) { 813 while (1) {
818#if ENABLE_PLATFORM_MINGW32 814 tmp = strchr(tmp, PATH_SEP);
819 tmp = (char *)next_path_sep(tmp);
820#else
821 tmp = strchr(tmp, ':');
822#endif
823 if (!tmp) 815 if (!tmp)
824 break; 816 break;
825 *tmp++ = '\0'; /* ':' -> '\0' */ 817 *tmp++ = '\0'; /* ':' -> '\0' */