From de1901565979b5f56effc34b03594bee4f757f7d Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 26 Sep 2022 15:53:41 -0700 Subject: rctest: Fix scan-build warning This fixes the following warning: tools/rctest.c:131:2: warning: 1st function call argument is an uninitialized value [core.CallAndMessage] sdp_list_free(protos, NULL); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ --- tools/rctest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/rctest.c b/tools/rctest.c index 269503701..d31180880 100644 --- a/tools/rctest.c +++ b/tools/rctest.c @@ -94,7 +94,7 @@ static float tv2fl(struct timeval tv) static uint8_t get_channel(const char *svr, uint16_t uuid) { sdp_session_t *sdp; - sdp_list_t *srch, *attrs, *rsp, *protos; + sdp_list_t *srch, *attrs, *rsp, *protos = NULL; uuid_t svclass; uint16_t attr; bdaddr_t dst; -- cgit v1.2.1