summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-09-26 15:53:41 -0700
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-09-27 12:25:37 -0700
commitde1901565979b5f56effc34b03594bee4f757f7d (patch)
tree2f1cfc6711d7104620c7d36b5186ba1287364512 /tools
parentd763bfa4d0892b4b3b004577491d2493a999648e (diff)
downloadbluez-de1901565979b5f56effc34b03594bee4f757f7d.tar.gz
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); ^~~~~~~~~~~~~~~~~~~~~~~~~~~
Diffstat (limited to 'tools')
-rw-r--r--tools/rctest.c2
1 files changed, 1 insertions, 1 deletions
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;