]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_audiosocket: Avoid Sometimes-uninitialized Warning with Clang.
authorAlexander Traud <pabstraud@compuserve.com>
Mon, 13 Apr 2020 16:38:37 +0000 (18:38 +0200)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Tue, 14 Apr 2020 14:47:22 +0000 (09:47 -0500)
Change-Id: I40c014c2cb88e943cf6f1b99a08c7c885e855b3a

res/res_audiosocket.c

index 6dc64e7e87eda24ab84bef565b7855798f98d49a..11f6c3a2b6d3ddc235cdd55897df2ac8c4df8401 100644 (file)
@@ -99,7 +99,7 @@ static int handle_audiosocket_connection(const char *server,
 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) {