diff --git a/userspace/engine/falco_engine.cpp b/userspace/engine/falco_engine.cpp index 6d81af58..65c4ef80 100644 --- a/userspace/engine/falco_engine.cpp +++ b/userspace/engine/falco_engine.cpp @@ -771,7 +771,7 @@ void falco_engine::get_json_evt_types(libsinsp::filter::ast::expr* ast, auto evtcodes = libsinsp::filter::ast::ppm_event_codes(ast); libsinsp::events::set syscodes; #ifdef __linux__ - auto syscodes = libsinsp::filter::ast::ppm_sc_codes(ast); + syscodes = libsinsp::filter::ast::ppm_sc_codes(ast); #endif auto syscodes_to_evt_names = libsinsp::events::sc_set_to_event_names(syscodes); auto evtcodes_to_evt_names = libsinsp::events::event_set_to_names(evtcodes, false);