diff options
Diffstat (limited to 'libbb/appletlib.c')
-rw-r--r-- | libbb/appletlib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c index 54be59f2d..97dfb3df8 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c | |||
@@ -781,7 +781,7 @@ static void install_links(const char *busybox, int use_symbolic_links, | |||
781 | unsigned i; | 781 | unsigned i; |
782 | int rc; | 782 | int rc; |
783 | # if ENABLE_PLATFORM_MINGW32 | 783 | # if ENABLE_PLATFORM_MINGW32 |
784 | const char *sd = NULL; | 784 | const char *sd = ""; |
785 | 785 | ||
786 | if (custom_install_dir != NULL) { | 786 | if (custom_install_dir != NULL) { |
787 | bb_make_directory(custom_install_dir, 0755, FILEUTILS_RECUR); | 787 | bb_make_directory(custom_install_dir, 0755, FILEUTILS_RECUR); |
@@ -789,7 +789,7 @@ static void install_links(const char *busybox, int use_symbolic_links, | |||
789 | else { | 789 | else { |
790 | sd = get_system_drive(); | 790 | sd = get_system_drive(); |
791 | for (i=1; i<ARRAY_SIZE(install_dir); ++i) { | 791 | for (i=1; i<ARRAY_SIZE(install_dir); ++i) { |
792 | fpc = xasprintf("%s%s", sd ?: "", install_dir[i]); | 792 | fpc = concat_path_file(sd, install_dir[i]); |
793 | bb_make_directory(fpc, 0755, FILEUTILS_RECUR); | 793 | bb_make_directory(fpc, 0755, FILEUTILS_RECUR); |
794 | free(fpc); | 794 | free(fpc); |
795 | } | 795 | } |
@@ -802,7 +802,7 @@ static void install_links(const char *busybox, int use_symbolic_links, | |||
802 | 802 | ||
803 | for (i = 0; i < ARRAY_SIZE(applet_main); i++) { | 803 | for (i = 0; i < ARRAY_SIZE(applet_main); i++) { |
804 | # if ENABLE_PLATFORM_MINGW32 | 804 | # if ENABLE_PLATFORM_MINGW32 |
805 | fpc = xasprintf("%s%s/%s.exe", sd ?: "", | 805 | fpc = xasprintf("%s%s/%s.exe", sd, |
806 | custom_install_dir ?: install_dir[APPLET_INSTALL_LOC(i)], | 806 | custom_install_dir ?: install_dir[APPLET_INSTALL_LOC(i)], |
807 | appname); | 807 | appname); |
808 | # else | 808 | # else |