diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-09-07 23:29:17 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-09-07 23:29:17 +0000 |
commit | 32cc6e88bb359437dd4d9868c910e3c56e579f49 (patch) | |
tree | 5d8ac4e9bdb3d621c5875e6ac0af04446dfbc21a /channels | |
parent | 9bba5d8b7a10f2205fad8c8816c51b86657be948 (diff) |
initialize these variables because they could be used uninitialized in the
case that the codec capabilities are 0, oops
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6545 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_sip.c | 4 |
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 ; |