From 107ba8c6c4deb2e532a6453228eeb21a584a99b0 Mon Sep 17 00:00:00 2001 From: Kyungwook Tak Date: Thu, 16 Jul 2015 18:13:44 +0900 Subject: [PATCH] Restore to fix dfsCheckDirectories Change-Id: Ia194723f1f28b75db68b6c17eb43055dc7cfc03e Signed-off-by: Kyungwook Tak --- vcore/src/vcore/ReferenceValidator.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vcore/src/vcore/ReferenceValidator.cpp b/vcore/src/vcore/ReferenceValidator.cpp index e8b810a..d8b839e 100644 --- a/vcore/src/vcore/ReferenceValidator.cpp +++ b/vcore/src/vcore/ReferenceValidator.cpp @@ -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); -- 2.7.4