[asterisk-commits] tilghman: trunk r195839 - /trunk/apps/app_stack.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed May 20 18:30:08 CDT 2009
Author: tilghman
Date: Wed May 20 18:30:05 2009
New Revision: 195839
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=195839
Log:
If a variable had a blank value upon the initial setting, then it would do nothing.
Identified by Dmitry Andrianov via private email, fixed by me.
Modified:
trunk/apps/app_stack.c
Modified: trunk/apps/app_stack.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/apps/app_stack.c?view=diff&rev=195839&r1=195838&r2=195839
==============================================================================
--- trunk/apps/app_stack.c (original)
+++ trunk/apps/app_stack.c Wed May 20 18:30:05 2009
@@ -201,21 +201,20 @@
}
}
- if (!ast_strlen_zero(value)) {
- if (!found) {
- variables = ast_var_assign(var, "");
- AST_LIST_INSERT_HEAD(&frame->varshead, variables, entries);
- pbx_builtin_pushvar_helper(chan, var, value);
- } else
- pbx_builtin_setvar_helper(chan, var, value);
-
- manager_event(EVENT_FLAG_DIALPLAN, "VarSet",
- "Channel: %s\r\n"
- "Variable: LOCAL(%s)\r\n"
- "Value: %s\r\n"
- "Uniqueid: %s\r\n",
- chan->name, var, value, chan->uniqueid);
- }
+ if (!found) {
+ variables = ast_var_assign(var, "");
+ AST_LIST_INSERT_HEAD(&frame->varshead, variables, entries);
+ pbx_builtin_pushvar_helper(chan, var, value);
+ } else {
+ pbx_builtin_setvar_helper(chan, var, value);
+ }
+
+ manager_event(EVENT_FLAG_DIALPLAN, "VarSet",
+ "Channel: %s\r\n"
+ "Variable: LOCAL(%s)\r\n"
+ "Value: %s\r\n"
+ "Uniqueid: %s\r\n",
+ chan->name, var, value, chan->uniqueid);
return 0;
}
More information about the asterisk-commits
mailing list