Fixed race condition by properly constructing a local CheckUnusedFunctions instance in CppCheck::processFile(). Instantiating Checks is dangerous!

This commit is contained in:
PKEuS 2016-11-18 21:09:41 +01:00
parent e94407fbce
commit 5344a5e098
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ unsigned int CppCheck::processFile(const std::string& filename, const std::strin
}
}
CheckUnusedFunctions checkUnusedFunctions;
CheckUnusedFunctions checkUnusedFunctions(0,0,0);
bool internalErrorFound(false);
try {