Skip to content

Commit

Permalink
fix(sysdig): set filter string when setting filter
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Scolaro <[email protected]>
  • Loading branch information
therealbobo committed Sep 30, 2024
1 parent 2423168 commit 1c5d9a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion userspace/sysdig/sysdig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1913,7 +1913,9 @@ sysdig_init_res sysdig_init(int argc, char **argv)
{
try
{
inspector->set_filter(filter);
sinsp_filter_compiler compiler(filter_factory, filter);
std::unique_ptr<sinsp_filter> s = compiler.compile();
inspector->set_filter(std::move(s), filter);
}
catch (sinsp_exception& e)
{
Expand Down

0 comments on commit 1c5d9a0

Please sign in to comment.