summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorU. Artie Eoff <ullysses.a.eoff@intel.com>2014-01-10 20:28:43 (GMT)
committerKristian Høgsberg <krh@bitplanet.net>2014-01-15 18:46:08 (GMT)
commit3a1be1e6fea34fa87f9329d7bf06bd40340f754f (patch)
tree9bc1f70b0365a934de8c9c6e06d9bc1b215a5a81
parentfcf5f06b7d335d9811dddab6572ba495f74c5838 (diff)
downloadwayland-3a1be1e6fea34fa87f9329d7bf06bd40340f754f.tar.gz
wayland-3a1be1e6fea34fa87f9329d7bf06bd40340f754f.tar.xz
connection-test: assert closure is not NULL before invoking it
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
-rw-r--r--tests/connection-test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/connection-test.c b/tests/connection-test.c
index e284ea0..52d235d 100644
--- a/tests/connection-test.c
+++ b/tests/connection-test.c
@@ -418,6 +418,7 @@ marshal_demarshal(struct marshal_data *data,
object.id = msg[0];
closure = wl_connection_demarshal(data->read_connection,
size, &objects, &message);
+ assert(closure);
wl_closure_invoke(closure, WL_CLOSURE_INVOKE_SERVER, &object, 0, data);
wl_closure_destroy(closure);
}