value flow: fixed fp for data member

This commit is contained in:
Daniel Marjamäki 2014-01-12 14:37:26 +01:00
parent 9c088c2dd6
commit 5b679fc732
1 changed files with 1 additions and 1 deletions

View File

@ -255,7 +255,7 @@ static void valueFlowBeforeCondition(TokenList *tokenlist, ErrorLogger *errorLog
}
// Global variable : stop when leaving the function scope
if (var->isGlobal()) {
if (!var->isLocal()) {
if (!Token::Match(tok2->previous(), ")|else {"))
break;
if (Token::Match(tok2->previous(), ") {") &&