initialize these variables because they could be used uninitialized in the
authorRussell Bryant <russell@russellbryant.com>
Wed, 7 Sep 2005 23:29:17 +0000 (23:29 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 7 Sep 2005 23:29:17 +0000 (23:29 +0000)
case that the codec capabilities are 0, oops

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6545 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 7088182..5621ab0 100755 (executable)
@@ -4097,8 +4097,8 @@ static int add_sdp(struct sip_request *resp, struct sip_pvt *p)
        char t[256];
        char m[256];
        char m2[256];
-       char a[1024];
-       char a2[1024];
+       char a[1024] = "";
+       char a2[1024] = "";
        char iabuf[INET_ADDRSTRLEN];
        int x = 0;
        int capability = 0 ;