aboutsummaryrefslogtreecommitdiffstats
path: root/manager.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-24 17:32:21 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-24 17:32:21 +0000
commit95e0116e290cd3a055b936fbc3352d382ee9ca66 (patch)
tree32b9fb50185471dc8545e7a05a5e26dd7b78eedf /manager.c
parent69069986f462fe88d1f152998116c1aa479e1cee (diff)
Issue 10043 - There is a legitimate need to be able to set variables to the empty string.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@71288 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'manager.c')
-rw-r--r--manager.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/manager.c b/manager.c
index f884a9d24..bddd2bc6a 100644
--- a/manager.c
+++ b/manager.c
@@ -692,11 +692,6 @@ static int action_setvar(struct mansession *s, struct message *m)
return 0;
}
- if (ast_strlen_zero(varval)) {
- astman_send_error(s, m, "No value specified");
- return 0;
- }
-
if (!ast_strlen_zero(name)) {
c = ast_get_channel_by_name_locked(name);
if (!c) {
@@ -705,7 +700,7 @@ static int action_setvar(struct mansession *s, struct message *m)
}
}
- pbx_builtin_setvar_helper(c, varname, varval);
+ pbx_builtin_setvar_helper(c, varname, varval ? varval : "");
if (c)
ast_mutex_unlock(&c->lock);