Add / to download-path 54/89354/2 accepted/tizen/common/20160923.161317 accepted/tizen/ivi/20160925.234506 accepted/tizen/mobile/20160925.234525 submit/tizen_common/20160923.073443 submit/tizen_ivi/20160923.073448 submit/tizen_mobile/20160923.073439
authormin7.choi <min7.choi@samsung.com>
Fri, 23 Sep 2016 07:23:04 +0000 (16:23 +0900)
committermin7.choi <min7.choi@samsung.com>
Fri, 23 Sep 2016 07:33:33 +0000 (16:33 +0900)
Change-Id: I3f1607e71498a283ebf3b2ad10c05824aba71696
Signed-off-by: min7.choi <min7.choi@samsung.com>
src/download-manager-util.cpp
src/main.cpp

index a662910..4654894 100755 (executable)
@@ -369,8 +369,10 @@ string FileUtility::getDefaultPath(bool optionTempDir)
            path.assign(DM_DEFAULT_PHONE_INSTALL_DIR);
            path.append("/.temp_download");
        }
-       else
-               path.assign(DM_DEFAULT_PHONE_INSTALL_DIR);
+       else{
+           path.assign(DM_DEFAULT_PHONE_INSTALL_DIR);
+           path.append("/");
+       }
 
    return path;
 }
index 6397de2..a146beb 100755 (executable)
@@ -210,8 +210,10 @@ static void __app_control(app_control_h s, void *data)
                        string defaultStorage = string(default_storage);
                        if (defaultStorage.compare("1") == 0)
                                reqInstallDir.assign(DM_DEFAULT_MMC_INSTALL_DIR);
-                       else
+                       else{
                                reqInstallDir.assign(DM_DEFAULT_PHONE_INSTALL_DIR);
+                               reqInstallDir.append("/");
+                       }
                        DM_SLOGI("install dir[%s]",reqInstallDir.c_str());
                }
                free(default_storage);