ExprEngine; Check struct member assignment
This commit is contained in:
parent
263f80deb8
commit
6a07c2f71a
|
@ -2074,6 +2074,8 @@ void ExprEngine::runChecks(ErrorLogger *errorLogger, const Tokenizer *tokenizer,
|
|||
if (!Token::simpleMatch(tok->astParent(), "="))
|
||||
return;
|
||||
const Token *lhs = tok->astParent()->astOperand1();
|
||||
while (Token::simpleMatch(lhs, "."))
|
||||
lhs = lhs->astOperand2();
|
||||
if (!lhs || !lhs->variable() || !lhs->variable()->nameToken())
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in New Issue