In ReferenceValidator::Impl::dfsCheckDirectories.
There is no guaranteed that m_dirpath path has ending slash mark.
We need to append slash to correctly construct path.
Change-Id: I057615c935445d7eff2b21e74ce29c3210bb2cee
{
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.c_str());