Applied review suggestions for Ticket #568

This commit is contained in:
Zachary Blair 2010-06-03 22:42:54 -07:00
parent 3c2a10d0a0
commit 2645e96783
1 changed files with 2 additions and 2 deletions

View File

@ -1528,13 +1528,13 @@ void CheckBufferOverrun::checkInsecureCmdLineArgs()
// Jump to the opening curly brace
tok = tok->next()->link();
if (!tok || !tok->next())
if (!Token::simpleMatch(tok, ") {"))
continue;
tok = tok->next();
// Search within main() for possible buffer overruns involving argv
int indentlevel = -1;
for (; tok && tok->next(); tok = tok->next())
for (; tok; tok = tok->next())
{
if (tok->str() == "{")
{