Fix issue detected by Coverity, there was dead code because the wrong variable was used in condition

This commit is contained in:
Daniel Marjamäki 2017-08-01 11:45:51 +02:00
parent be998773ee
commit 0c8a899f59
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ void ImportProject::importSln(std::istream &istr, const std::string &path)
if (pos == std::string::npos)
continue;
const std::string::size_type pos1 = line.rfind('\"',pos);
if (pos == std::string::npos)
if (pos1 == std::string::npos)
continue;
std::string vcxproj(line.substr(pos1+1, pos-pos1+7));
if (!Path::isAbsolute(vcxproj))