From: Alexander Traud Date: Mon, 13 Apr 2020 16:38:37 +0000 (+0200) Subject: res_audiosocket: Avoid Sometimes-uninitialized Warning with Clang. X-Git-Tag: 18.0.0-rc1~141 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27de0c9700fdb9a54c7e39e220114313088c96d2;p=thirdparty%2Fasterisk.git res_audiosocket: Avoid Sometimes-uninitialized Warning with Clang. Change-Id: I40c014c2cb88e943cf6f1b99a08c7c885e855b3a --- diff --git a/res/res_audiosocket.c b/res/res_audiosocket.c index 6dc64e7e87..11f6c3a2b6 100644 --- a/res/res_audiosocket.c +++ b/res/res_audiosocket.c @@ -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) {