Fix Cppcheck warning
This commit is contained in:
parent
c899d7becf
commit
c3c9559bee
|
@ -1072,7 +1072,7 @@ static ExprEngine::ValuePtr executeDeref(const Token *tok, Data &data)
|
||||||
auto v = getValueRangeFromValueType(data.getNewSymbolName(), tok->valueType(), *data.settings);
|
auto v = getValueRangeFromValueType(data.getNewSymbolName(), tok->valueType(), *data.settings);
|
||||||
if (tok->astOperand1()->varId()) {
|
if (tok->astOperand1()->varId()) {
|
||||||
pval = std::make_shared<ExprEngine::PointerValue>(data.getNewSymbolName(), v, false, false);
|
pval = std::make_shared<ExprEngine::PointerValue>(data.getNewSymbolName(), v, false, false);
|
||||||
data.assignValue(tok->astOperand1(), tok->astOperand1()->varId(), v);
|
data.assignValue(tok->astOperand1(), tok->astOperand1()->varId(), pval);
|
||||||
}
|
}
|
||||||
call(data.callbacks, tok, v, &data);
|
call(data.callbacks, tok, v, &data);
|
||||||
return v;
|
return v;
|
||||||
|
|
Loading…
Reference in New Issue