From e0c58cea4e2bab27f825a9cbe59e81d5c1865472 Mon Sep 17 00:00:00 2001 From: "U. Artie Eoff" Date: Fri, 10 Jan 2014 13:04:34 -0800 Subject: [PATCH] os-wrappers-test: assert closure is not NULL before invoking it Signed-off-by: U. Artie Eoff --- tests/os-wrappers-test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/os-wrappers-test.c b/tests/os-wrappers-test.c index 27172536..e5cdac44 100644 --- a/tests/os-wrappers-test.c +++ b/tests/os-wrappers-test.c @@ -252,6 +252,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); } -- GitLab