aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_stack.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-10-27 16:42:07 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-10-27 16:42:07 +0000
commit359f6f7b242127c3bf49d18f3c5d3f8fec0fab2f (patch)
tree0a52640be61624fe934a66b8adc51b0fbf37c7ef /apps/app_stack.c
parent839ebb74681e2eb1828ac3841929455b8292f005 (diff)
Merged revisions 152134 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r152134 | tilghman | 2008-10-27 11:24:11 -0500 (Mon, 27 Oct 2008) | 4 lines Oops, only delete the ARG variables once upon release. The following section would have removed them again (removing variables from 2 stack frames, instead of just one). ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.1@152173 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_stack.c')
-rw-r--r--apps/app_stack.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/apps/app_stack.c b/apps/app_stack.c
index bfcefc19b..e0bd0afbb 100644
--- a/apps/app_stack.c
+++ b/apps/app_stack.c
@@ -118,8 +118,6 @@ static int frame_set_var(struct ast_channel *chan, struct gosub_stack_frame *fra
static void gosub_release_frame(struct ast_channel *chan, struct gosub_stack_frame *frame)
{
- unsigned char i;
- char argname[15];
struct ast_var_t *vardata;
/* If chan is not defined, then we're calling it as part of gosub_free,
@@ -128,14 +126,6 @@ static void gosub_release_frame(struct ast_channel *chan, struct gosub_stack_fra
* that frame, so that we re-expose the variables from the previous frame
* that were hidden by this one.
*/
- if (chan) {
- for (i = 1; i <= frame->arguments && i != 0; i++) {
- snprintf(argname, sizeof(argname), "ARG%hhd", i);
- pbx_builtin_setvar_helper(chan, argname, NULL);
- }
- }
-
- /* Delete local variables */
while ((vardata = AST_LIST_REMOVE_HEAD(&frame->varshead, entries))) {
if (chan)
pbx_builtin_setvar_helper(chan, ast_var_name(vardata), NULL);