diff options
author | Russell Bryant <russell@russellbryant.com> | 2005-11-03 21:25:57 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2005-11-03 21:25:57 +0000 |
commit | 8925c3834b87361042751e4f692626a77fd1b81b (patch) | |
tree | 5aec836e500aadc4873f69e71d0fbdc064767494 | |
parent | 426360e3897a4bd682c71e10ea0415071411735a (diff) |
issue #5589
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6954 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-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)) |