Tokenizer::SetVarId : Fixed segmentation fault
This commit is contained in:
parent
6383b9d2bd
commit
0cfec3c89c
|
@ -626,7 +626,7 @@ void Tokenizer::setVarId()
|
||||||
// Determine name of declared variable..
|
// Determine name of declared variable..
|
||||||
const char *varname = 0;
|
const char *varname = 0;
|
||||||
TOKEN *tok2 = tok->next();
|
TOKEN *tok2 = tok->next();
|
||||||
while ( ! TOKEN::Match( tok2, "[;[=(]" ) )
|
while ( tok2 && ! TOKEN::Match( tok2, "[;[=(]" ) )
|
||||||
{
|
{
|
||||||
if ( tok2->isName() )
|
if ( tok2->isName() )
|
||||||
varname = tok2->strAt(0);
|
varname = tok2->strAt(0);
|
||||||
|
|
Loading…
Reference in New Issue