aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xChangeLog4
-rwxr-xr-xres/res_agi.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c58b18cc6..8cdb166b0 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-11-03 Russell Bryant <russell@digium.com>
+
+ * res/res_agi.c: initialize buffer for result so that the contents are always valid in the response to GET FULL VARIABLE
+
2005-11-03 Kevin P. Fleming <kpfleming@digium.com>
* include/asterisk/app.h: re-work application arg/option parsing APIs for consistent naming, add doxygen docs for option API
diff --git a/res/res_agi.c b/res/res_agi.c
index 36e0e2803..de3fcf0f7 100755
--- a/res/res_agi.c
+++ b/res/res_agi.c
@@ -1168,7 +1168,7 @@ static int handle_getvariable(struct ast_channel *chan, AGI *agi, int argc, char
static int handle_getvariablefull(struct ast_channel *chan, AGI *agi, int argc, char **argv)
{
- char tmp[4096];
+ char tmp[4096] = "";
struct ast_channel *chan2=NULL;
if ((argc != 4) && (argc != 5))