Applied review suggestions for Ticket #568
This commit is contained in:
parent
3c2a10d0a0
commit
2645e96783
|
@ -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() == "{")
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue