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

Joshua Colp asteriskteam at digium.com
Wed Mar 11 09:54:40 CDT 2020


Joshua Colp has uploaded this change for review. ( 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(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/06/13906/1

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-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200311/10b5b6f2/attachment.html>


More information about the asterisk-code-review mailing list