From 1189258e8ee6348ae8085803b85bb7685323635f Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 23 Jan 2014 15:15:00 +0200 Subject: [PATCH] tools/l2cap-tester: Fix checking for NULL test data --- tools/l2cap-tester.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/l2cap-tester.c b/tools/l2cap-tester.c index 8385941c7..1f730477b 100644 --- a/tools/l2cap-tester.c +++ b/tools/l2cap-tester.c @@ -689,7 +689,7 @@ static void setup_powered_client(const void *test_data) tester_print("Powering on controller"); - if (test->expect_cmd || test->send_cmd) { + if (test && (test->expect_cmd || test->send_cmd)) { struct bthost *bthost = hciemu_client_get_host(data->hciemu); bthost_set_connect_cb(bthost, send_rsp_new_conn, data); } -- 2.47.3