projects
/
platform
/
upstream
/
wayland.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d327c5
)
connection: abort if a listener function is NULL
author
Ryo Munakata
<ryomnktml@gmail.com>
Wed, 1 Oct 2014 12:17:18 +0000
(21:17 +0900)
committer
Pekka Paalanen
<pekka.paalanen@collabora.co.uk>
Wed, 12 Nov 2014 12:00:38 +0000
(14:00 +0200)
Signed-off-by: Ryo Munakata <ryomnktml@gmail.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
src/connection.c
patch
|
blob
|
history
diff --git
a/src/connection.c
b/src/connection.c
index
f9f2474
..
2545194
100644
(file)
--- 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);
}