Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv32508/channels

Modified Files:
        chan_sip.c 
Log Message:
initialize these variables because they could be used uninitialized in the
case that the codec capabilities are 0, oops


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.843
retrieving revision 1.844
diff -u -d -r1.843 -r1.844
--- chan_sip.c  7 Sep 2005 21:01:31 -0000       1.843
+++ chan_sip.c  7 Sep 2005 23:29:17 -0000       1.844
@@ -4097,8 +4097,8 @@
        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 ;

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to