Currently the FILTER_TRIVIAL_FALSE hasn't break statement so if the trivial type is FALSE, it'll be hit always.
So add break statement at the FALSE case to correctly remove trivial filters. Reported-by: Namhyung Kim <[email protected]> Signed-off-by: Taeung Song <[email protected]> --- parse-filter.c | 1 + 1 file changed, 1 insertion(+) diff --git a/parse-filter.c b/parse-filter.c index 7c214ce..c2fd26f 100644 --- a/parse-filter.c +++ b/parse-filter.c @@ -1634,6 +1634,7 @@ int pevent_filter_clear_trivial(struct event_filter *filter, case FILTER_TRIVIAL_FALSE: if (filter_type->filter->boolean.value) continue; + break; case FILTER_TRIVIAL_TRUE: if (!filter_type->filter->boolean.value) continue; -- 2.7.4

