src/checkbufferoverrun.cpp: don't call Token::Match() for variables with varId 0.
This commit is contained in:
parent
822fb93cda
commit
13532cbff7
|
@ -293,7 +293,7 @@ void CheckBufferOverrun::checkScope(const Token *tok, const char *varname[], con
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (counter_varid > 0 && !min_counter_value.empty() && !max_counter_value.empty())
|
else if (varid > 0 && counter_varid > 0 && !min_counter_value.empty() && !max_counter_value.empty())
|
||||||
{
|
{
|
||||||
int min_index = 0;
|
int min_index = 0;
|
||||||
int max_index = 0;
|
int max_index = 0;
|
||||||
|
|
Loading…
Reference in New Issue