From: Ryo Munakata Date: Wed, 1 Oct 2014 12:17:18 +0000 (+0900) Subject: connection: abort if a listener function is NULL X-Git-Tag: 1.6.91~47 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=47c752ad82d4475d6f4f605423c93bb29e679bf8;p=platform%2Fupstream%2Fwayland.git connection: abort if a listener function is NULL Signed-off-by: Ryo Munakata Reviewed-by: Pekka Paalanen --- diff --git a/src/connection.c b/src/connection.c index f9f2474..2545194 100644 --- a/src/connection.c +++ b/src/connection.c @@ -934,6 +934,11 @@ wl_closure_invoke(struct wl_closure *closure, uint32_t flags, count + 2, &ffi_type_void, ffi_types); implementation = target->implementation; + if (!implementation[opcode]) { + wl_log("listener function for opcode %u of %s is NULL\n", + opcode, target->interface->name); + abort(); + } ffi_call(&cif, implementation[opcode], NULL, ffi_args); }