Fix Cppcheck warning

This commit is contained in:
Daniel Marjamäki 2019-10-27 18:22:47 +01:00
parent c899d7becf
commit c3c9559bee
1 changed files with 1 additions and 1 deletions

View File

@ -1072,7 +1072,7 @@ static ExprEngine::ValuePtr executeDeref(const Token *tok, Data &data)
auto v = getValueRangeFromValueType(data.getNewSymbolName(), tok->valueType(), *data.settings);
if (tok->astOperand1()->varId()) {
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);
return v;