diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-11-03 21:25:57 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-11-03 21:25:57 +0000 |
commit | bd1d2d2bbf2ef9208e61c1458f0a393d8bbf15c5 (patch) | |
tree | 5aec836e500aadc4873f69e71d0fbdc064767494 | |
parent | ae35e4e0699024320c2dad11183f2a67722199fc (diff) |
issue #5589
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6954 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-x | ChangeLog | 4 | ||||
-rwxr-xr-x | res/res_agi.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -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)) |