From 3a1be1e6fea34fa87f9329d7bf06bd40340f754f Mon Sep 17 00:00:00 2001 From: "U. Artie Eoff" Date: Fri, 10 Jan 2014 12:28:43 -0800 Subject: [PATCH] connection-test: assert closure is not NULL before invoking it Signed-off-by: U. Artie Eoff --- tests/connection-test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/connection-test.c b/tests/connection-test.c index e284ea05..52d235d8 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); }