[Asterisk-code-review] res_audiosocket: Avoid Sometimes-uninitialized Warning with Clang. (asterisk[master])
Friendly Automation
asteriskteam at digium.com
Tue Apr 14 09:47:24 CDT 2020
Friendly Automation has submitted this change. ( 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(-)
Approvals:
Joshua Colp: Looks good to me, but someone else must approve
Kevin Harwell: Looks good to me, but someone else must approve
Sean Bright: Looks good to me, but someone else must approve
George Joseph: Looks good to me, approved
Friendly Automation: Approved for Submit
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: 2
Gerrit-Owner: Alexander Traud <pabstraud at compuserve.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
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-CC: Seán C. McCord <ulexus at gmail.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200414/c6667ab9/attachment.html>
More information about the asterisk-code-review
mailing list