diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-10-27 16:24:11 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-10-27 16:24:11 +0000 |
commit | 7eb5908f1db21f3b3baa669cb8b903a92c5f1ac8 (patch) | |
tree | 62f40b8032296e63e80e00cf9ddab753287dd4e1 /apps/app_stack.c | |
parent | d6f87a5456c93ac6240dce691f491b5ad8068e18 (diff) |
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/trunk@152134 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_stack.c')
-rw-r--r-- | apps/app_stack.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/apps/app_stack.c b/apps/app_stack.c index bfcefc19b..4afabc651 100644 --- a/apps/app_stack.c +++ b/apps/app_stack.c @@ -128,14 +128,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); |