[asterisk-commits] russell: trunk r314781 - in /trunk: ./ res/res_agi.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Apr 22 09:08:04 CDT 2011
Author: russell
Date: Fri Apr 22 09:08:02 2011
New Revision: 314781
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=314781
Log:
Merged revisions 314780 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8
................
r314780 | russell | 2011-04-22 09:02:23 -0500 (Fri, 22 Apr 2011) | 18 lines
Merged revisions 314778 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2
........
r314778 | russell | 2011-04-22 08:58:03 -0500 (Fri, 22 Apr 2011) | 11 lines
Initialize buffers in getvar and getvarfull.
Initialize the buffers used to hold the result from GET VARIABLE or
GET VARIABLE FULL. The bug report shows func_read returning garbage in
the result. It assumed that the buffer passed in was initialized, like many
other functions do. In the more common code path (through the dialplan), it
is initialized, so just initialize it here too.
(closes issue #19050)
Reported by: johnz
........
................
Modified:
trunk/ (props changed)
trunk/res/res_agi.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.
Modified: trunk/res/res_agi.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_agi.c?view=diff&rev=314781&r1=314780&r2=314781
==============================================================================
--- trunk/res/res_agi.c (original)
+++ trunk/res/res_agi.c Fri Apr 22 09:08:02 2011
@@ -2558,7 +2558,7 @@
static int handle_getvariable(struct ast_channel *chan, AGI *agi, int argc, const char * const argv[])
{
char *ret;
- char tempstr[1024];
+ char tempstr[1024] = "";
if (argc != 3)
return RESULT_SHOWUSAGE;
More information about the asterisk-commits
mailing list