mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
addressed performance and correctness issues flagged by Coverity
This commit is contained in:
parent
9357a5879b
commit
3925ff4592
9 changed files with 32 additions and 29 deletions
|
@ -2079,7 +2079,7 @@ void WhenInfo::BuildProfile()
|
|||
if ( ! is_present )
|
||||
{
|
||||
IDPtr wl_ptr = {NewRef{}, const_cast<ID*>(wl)};
|
||||
cl->emplace_back(wl_ptr, false);
|
||||
cl->emplace_back(std::move(wl_ptr), false);
|
||||
}
|
||||
|
||||
// In addition, don't treat them as external locals that
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue