Restore to fix dfsCheckDirectories 34/44034/1
authorKyungwook Tak <k.tak@samsung.com>
Thu, 16 Jul 2015 09:13:44 +0000 (18:13 +0900)
committerKyungwook Tak <k.tak@samsung.com>
Thu, 16 Jul 2015 09:13:44 +0000 (18:13 +0900)
Change-Id: Ia194723f1f28b75db68b6c17eb43055dc7cfc03e
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
vcore/src/vcore/ReferenceValidator.cpp

index e8b810a..d8b839e 100644 (file)
@@ -138,7 +138,11 @@ ReferenceValidator::Result ReferenceValidator::Impl::dfsCheckDirectories(
 {
     DIR *dp;
     struct dirent *dirp;
-    std::string currentDir = m_dirpath + directory;
+    std::string currentDir = m_dirpath;
+    if (!directory.empty()) {
+        currentDir += "/";
+        currentDir += directory;
+    }
 
     if ((dp = opendir(currentDir.c_str())) == NULL) {
         LogError("Error opening directory : " << currentDir);