Fixed Cppcheck warning
This commit is contained in:
parent
4dc73e3a5b
commit
7237b01979
|
@ -1320,7 +1320,7 @@ void CheckBufferOverrun::bufferOverrun2()
|
||||||
// Set full varname..
|
// Set full varname..
|
||||||
if (tok->astParent() && tok->astParent()->str() == ".") {
|
if (tok->astParent() && tok->astParent()->str() == ".") {
|
||||||
const Token *parent = tok->astParent();
|
const Token *parent = tok->astParent();
|
||||||
while (parent && parent->astParent() && parent->astParent()->str() == ".")
|
while (parent->astParent() && parent->astParent()->str() == ".")
|
||||||
parent = parent->astParent();
|
parent = parent->astParent();
|
||||||
arrayInfo.varname(parent->expressionString());
|
arrayInfo.varname(parent->expressionString());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue