summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2005-09-07 23:29:17 +0000
committerRussell Bryant <russell@russellbryant.com>2005-09-07 23:29:17 +0000
commit720272254b937e491ca4f301893218d614852a3e (patch)
tree5d8ac4e9bdb3d621c5875e6ac0af04446dfbc21a /channels
parenta51556ff3e0dd06db0a3f5c59c475ea0bc6f0f5d (diff)
initialize these variables because they could be used uninitialized in the
case that the codec capabilities are 0, oops git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6545 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_sip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 708818288..5621ab02b 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -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 ;