[asterisk-commits] russell: trunk r359510 - in /trunk: ./ channels/chan_gtalk.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Mar 14 19:07:22 CDT 2012


Author: russell
Date: Wed Mar 14 19:07:18 2012
New Revision: 359510

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=359510
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
........

Merged revisions 359509 from http://svn.asterisk.org/svn/asterisk/branches/10

Modified:
    trunk/   (props changed)
    trunk/channels/chan_gtalk.c

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

Modified: trunk/channels/chan_gtalk.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_gtalk.c?view=diff&rev=359510&r1=359509&r2=359510
==============================================================================
--- trunk/channels/chan_gtalk.c (original)
+++ trunk/channels/chan_gtalk.c Wed Mar 14 19:07:18 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