From: José Bollo Date: Fri, 16 Nov 2018 10:37:54 +0000 (+0100) Subject: afb-export: Fix error in event handling X-Git-Tag: 6.99.1~3 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fapp-framework-binder.git;a=commitdiff_plain;h=42099d3e2bd791f64c75ce333a71a42d8c053698 afb-export: Fix error in event handling Change-Id: I2869a2a840fb07550d493ddc2d651358892d33d1 Signed-off-by: José Bollo --- diff --git a/src/afb-export.c b/src/afb-export.c index fb1888ed..cabb4858 100644 --- a/src/afb-export.c +++ b/src/afb-export.c @@ -1172,7 +1172,7 @@ static void listener_of_events(void *closure, const char *event, int eventid, st /* search the handler */ handler = export->event_handlers; while (handler) { - if (fnmatch(handler->pattern, event, 0)) { + if (!fnmatch(handler->pattern, event, 0)) { if (!(export->hooksvc & afb_hook_flag_api_on_event_handler)) handler->callback(handler->closure, event, object, to_api_x3(export)); else {