refactor(usersapace): adapt to changes libs

Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
This commit is contained in:
Jason Dellaluce
2024-02-20 09:21:24 +00:00
committed by poiana
parent 4ed11d90a4
commit b515f0a079
4 changed files with 4 additions and 6 deletions

View File

@@ -58,10 +58,8 @@ struct falco_source
inline bool is_field_defined(const std::string& field) const
{
auto *chk = filter_factory->new_filtercheck(field.c_str());
if (chk)
if (filter_factory->new_filtercheck(field.c_str()) != nullptr)
{
delete(chk);
return true;
}
return false;