mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
connection: abort if a listener function is NULL
Signed-off-by: Ryo Munakata <ryomnktml@gmail.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
parent
9d327c5796
commit
47c752ad82
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue