[asterisk-commits] russell: branch 10 r359509 - in /branches/10: ./ channels/chan_gtalk.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Mar 14 18:46:24 CDT 2012


Author: russell
Date: Wed Mar 14 18:46:21 2012
New Revision: 359509

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=359509
Log:
chan_gtalk: Fix potential use of uninitialized variable.

Avoid potential use of idroster in gtalk_alloc() before it has been
initialized.
........

Merged revisions 359508 from http://svn.asterisk.org/svn/asterisk/branches/1.8

Modified:
    branches/10/   (props changed)
    branches/10/channels/chan_gtalk.c

Propchange: branches/10/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.

Modified: branches/10/channels/chan_gtalk.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/channels/chan_gtalk.c?view=diff&rev=359509&r1=359508&r2=359509
==============================================================================
--- branches/10/channels/chan_gtalk.c (original)
+++ branches/10/channels/chan_gtalk.c Wed Mar 14 18:46:21 2012
@@ -1004,7 +1004,7 @@
 	struct gtalk_pvt *tmp = NULL;
 	struct aji_resource *resources = NULL;
 	struct aji_buddy *buddy = NULL;
-	char idroster[200];
+	char idroster[200] = "";
 	char *data, *exten = NULL;
 	struct ast_sockaddr bindaddr_tmp;
 




More information about the asterisk-commits mailing list