Merge pull request #573 from Dmitry-Me/removeDuplicateCheck

Remove duplicate check
This commit is contained in:
PKEuS 2015-03-24 19:24:14 +01:00
commit b9ff2fd922
1 changed files with 1 additions and 1 deletions

View File

@ -950,7 +950,7 @@ void CheckBufferOverrun::checkScope(const Token *tok, const ArrayInfo &arrayInfo
}
// Detect few strcat() calls
if (total_size > 0 && Token::Match(tok, "strcat ( %varid% , %str% ) ;", declarationId)) {
if (total_size > 0) {
std::size_t charactersAppend = 0;
const Token *tok2 = tok;