[Asterisk-code-review] res_rtp_asterisk: Fix unused warning for "ice". (asterisk[13])

Joshua Colp asteriskteam at digium.com
Wed Mar 11 11:33:42 CDT 2020


Joshua Colp has submitted this change. ( https://gerrit.asterisk.org/c/asterisk/+/13906 )

Change subject: res_rtp_asterisk: Fix unused warning for "ice".
......................................................................

res_rtp_asterisk: Fix unused warning for "ice".

Change-Id: I31e022f722509214cd600c428939c91ace0c59fd
---
M res/res_pjsip_sdp_rtp.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Kevin Harwell: Looks good to me, but someone else must approve
  Sean Bright: Looks good to me, approved
  Joshua Colp: Approved for Submit



diff --git a/res/res_pjsip_sdp_rtp.c b/res/res_pjsip_sdp_rtp.c
index c745baf..b0a9188 100644
--- a/res/res_pjsip_sdp_rtp.c
+++ b/res/res_pjsip_sdp_rtp.c
@@ -521,7 +521,7 @@
 /*! \brief Function which adds ICE attributes to a media stream */
 static void add_ice_to_stream(struct ast_sip_session *session, struct ast_sip_session_media *session_media, pj_pool_t *pool, pjmedia_sdp_media *media)
 {
-	struct ast_rtp_engine_ice *ice;
+	struct ast_rtp_engine_ice *ice = NULL;
 	struct ao2_container *candidates;
 	const char *username, *password;
 	pj_str_t stmp;

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/13906
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Change-Id: I31e022f722509214cd600c428939c91ace0c59fd
Gerrit-Change-Number: 13906
Gerrit-PatchSet: 1
Gerrit-Owner: Joshua Colp <jcolp at sangoma.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-Reviewer: Sean Bright <sean.bright at gmail.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200311/a07584e4/attachment-0001.html>


More information about the asterisk-code-review mailing list