This commit is contained in:
Daniel Marjamäki 2009-12-19 17:57:58 +01:00
parent c988b14fb5
commit 8a1940e043
3 changed files with 8 additions and 6 deletions

View File

@ -240,7 +240,9 @@ void CheckBufferOverrun::checkScope(const Token *tok, const char *varname[], con
if (!Token::Match(tok2, "%varid% [ %any% ] = 0 ;", tok->tokAt(2)->varId())) if (!Token::Match(tok2, "%varid% [ %any% ] = 0 ;", tok->tokAt(2)->varId()))
{ {
terminateStrncpyError(tok); terminateStrncpyError(tok);
} else { }
else
{
break; break;
} }
} }