[asterisk-commits] tilghman: trunk r152134 - /trunk/apps/app_stack.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Oct 27 11:24:12 CDT 2008


Author: tilghman
Date: Mon Oct 27 11:24:11 2008
New Revision: 152134

URL: http://svn.digium.com/view/asterisk?view=rev&rev=152134
Log:
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).

Modified:
    trunk/apps/app_stack.c

Modified: trunk/apps/app_stack.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_stack.c?view=diff&rev=152134&r1=152133&r2=152134
==============================================================================
--- trunk/apps/app_stack.c (original)
+++ trunk/apps/app_stack.c Mon Oct 27 11:24:11 2008
@@ -128,14 +128,6 @@
 	 * 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);	




More information about the asterisk-commits mailing list