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);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
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;