mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 03:28:19 +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
|
@ -4649,7 +4649,7 @@ LambdaExpr::LambdaExpr(FunctionIngredientsPtr arg_ing, IDPList arg_outer_ids, st
|
|||
auto ingr_t = ingredients->GetID()->GetType<FuncType>();
|
||||
SetType(ingr_t);
|
||||
|
||||
if ( ! CheckCaptures(when_parent) )
|
||||
if ( ! CheckCaptures(std::move(when_parent)) )
|
||||
{
|
||||
SetError();
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue