fix klocwork warning; pointer is checked and then dereferenced. FN ticket: #10570
This commit is contained in:
parent
20883a5a3f
commit
b872639e31
|
@ -1920,6 +1920,7 @@ static ExprEngine::ValuePtr executeAssign(const Token *tok, Data &data)
|
|||
}
|
||||
|
||||
const Token *lhsToken = tok->astOperand1();
|
||||
if (lhsToken)
|
||||
assignValue = truncateValue(assignValue, lhsToken->valueType(), data);
|
||||
call(data.callbacks, tok, assignValue, &data);
|
||||
|
||||
|
|
Loading…
Reference in New Issue