mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +00:00
addressed some Coverity nits
This commit is contained in:
parent
b0d9a841f5
commit
aab5324e20
7 changed files with 11 additions and 9 deletions
|
@ -384,7 +384,7 @@ NameExprPtr Reducer::GetRetVar(TypePtr type) {
|
|||
return nullptr;
|
||||
|
||||
IDPtr ret_id = install_ID("@retvar", "<internal>", false, false);
|
||||
ret_id->SetType(type);
|
||||
ret_id->SetType(std::move(type));
|
||||
ret_id->GetOptInfo()->SetTemp();
|
||||
|
||||
ret_vars.insert(ret_id.get());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue