From: Luiz Augusto von Dentz Date: Mon, 26 Sep 2022 22:53:41 +0000 (-0700) Subject: rctest: Fix scan-build warning X-Git-Tag: accepted/tizen/unified/20230608.164325~46 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=01ebb4a74e5f34cc26f6e27a76c90ac125509c97;p=platform%2Fupstream%2Fbluez.git 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); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Manika Shrivastava Signed-off-by: Ayush Garg --- diff --git a/tools/rctest.c b/tools/rctest.c index 93300e9..0b30db6 100755 --- a/tools/rctest.c +++ b/tools/rctest.c @@ -93,7 +93,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;