Fixed Cppcheck warning

This commit is contained in:
Daniel Marjamäki 2014-08-02 10:07:23 +02:00
parent 4dc73e3a5b
commit 7237b01979
1 changed files with 1 additions and 1 deletions

View File

@ -1320,7 +1320,7 @@ void CheckBufferOverrun::bufferOverrun2()
// Set full varname..
if (tok->astParent() && tok->astParent()->str() == ".") {
const Token *parent = tok->astParent();
while (parent && parent->astParent() && parent->astParent()->str() == ".")
while (parent->astParent() && parent->astParent()->str() == ".")
parent = parent->astParent();
arrayInfo.varname(parent->expressionString());
}