[asterisk-commits] russell: branch 1.8 r359508 - /branches/1.8/channels/chan_gtalk.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Mar 14 18:43:42 CDT 2012
Author: russell
Date: Wed Mar 14 18:43:38 2012
New Revision: 359508
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=359508
Log:
chan_gtalk: Fix potential use of uninitialized variable.
Avoid potential use of idroster in gtalk_alloc() before it has been
initialized.
Modified:
branches/1.8/channels/chan_gtalk.c
Modified: branches/1.8/channels/chan_gtalk.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/channels/chan_gtalk.c?view=diff&rev=359508&r1=359507&r2=359508
==============================================================================
--- branches/1.8/channels/chan_gtalk.c (original)
+++ branches/1.8/channels/chan_gtalk.c Wed Mar 14 18:43:38 2012
@@ -979,7 +979,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