[Asterisk-code-review] res_audiosocket: Avoid Sometimes-uninitialized Warning with Clang. (asterisk[master])

Alexander Traud asteriskteam at digium.com
Mon Apr 13 11:39:15 CDT 2020


Alexander Traud has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/14202 )


Change subject: res_audiosocket: Avoid Sometimes-uninitialized Warning with Clang.
......................................................................

res_audiosocket: Avoid Sometimes-uninitialized Warning with Clang.

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



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/02/14202/1

diff --git a/res/res_audiosocket.c b/res/res_audiosocket.c
index 6dc64e7..11f6c3a 100644
--- a/res/res_audiosocket.c
+++ b/res/res_audiosocket.c
@@ -99,7 +99,7 @@
 const int ast_audiosocket_connect(const char *server, struct ast_channel *chan)
 {
 	int s = -1;
-	struct ast_sockaddr *addrs;
+	struct ast_sockaddr *addrs = NULL;
 	int num_addrs = 0, i = 0;
 
 	if (chan && ast_autoservice_start(chan) < 0) {

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

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: I40c014c2cb88e943cf6f1b99a08c7c885e855b3a
Gerrit-Change-Number: 14202
Gerrit-PatchSet: 1
Gerrit-Owner: Alexander Traud <pabstraud at compuserve.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200413/5d4e741b/attachment-0001.html>


More information about the asterisk-code-review mailing list