From 0c8a899f59f340c8bf41e36eca6c3c7f6c1c1842 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 1 Aug 2017 11:45:51 +0200 Subject: [PATCH] Fix issue detected by Coverity, there was dead code because the wrong variable was used in condition --- lib/importproject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/importproject.cpp b/lib/importproject.cpp index 76c5450db..80f9cbbb1 100644 --- a/lib/importproject.cpp +++ b/lib/importproject.cpp @@ -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))