Skip to content

Commit

Permalink
refactor: very minor improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
federico-sysdig committed Feb 24, 2024
1 parent 3998c0f commit 3311db1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions userspace/falco/app/actions/process_events.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -488,8 +488,7 @@ falco::app::run_result falco::app::actions::process_events(falco::app::state& s)
ctxs.reserve(s.enabled_sources.size());
for (const auto& source : s.enabled_sources)
{
ctxs.emplace_back();
auto& ctx = ctxs[ctxs.size() - 1];
auto& ctx = ctxs.emplace_back();
ctx.source = source;
ctx.sync.reset(new source_sync_context(termination_sem));
auto src_info = s.source_infos.at(source);
Expand Down

0 comments on commit 3311db1

Please sign in to comment.