From 899bf5292119f8ce975b4d6bb6d17fa7fa23a786 Mon Sep 17 00:00:00 2001 From: Li Xiaoming Date: Thu, 14 Nov 2019 12:02:51 +0800 Subject: fix(iiodevices-binding.c): use afb_event_is_valid to check event MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit it will fix error of make: agl-service-iiodevices/binding/iiodevices-binding.c:103:15: error: ‘e->event’ is a pointer; did you mean to use ‘->’? if (!e->event.closure) { free(e); return NULL; } Bug-AGL: SPEC-2807 Change-Id: Id74ddff09b660e9dcdab046caf4770e31bfff39b Signed-off-by: Li Xiaoming --- binding/iiodevices-binding.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binding/iiodevices-binding.c b/binding/iiodevices-binding.c index b5a7588..e48a26a 100644 --- a/binding/iiodevices-binding.c +++ b/binding/iiodevices-binding.c @@ -100,7 +100,7 @@ static struct afb_event* event_add(const char *tag) /* make the event */ e->event = afb_daemon_make_event(tag); - if (!e->event.closure) { free(e); return NULL; } + if (!afb_event_is_valid(e->event)) { free(e); return NULL; } /* link */ e->next = events; -- cgit 1.2.3-korg