diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-06-15 18:25:12 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-06-15 18:25:12 +0000 |
commit | 4b4c1dd402247ece3bfdd56f1a097316fd613d4b (patch) | |
tree | 5b5886167ccfe772188ec3c50c56f988709bf98d /main/pbx.c | |
parent | 549d99cc0b9d63732745f5e9f11611381cf40138 (diff) |
Variables have always been case-sensitive, so we should not be removing case-insensitive matches.
Bug reported via the -dev list. See
http://lists.digium.com/pipermail/asterisk-dev/2010-June/044510.html
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@270583 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/pbx.c')
-rw-r--r-- | main/pbx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c index 6ec070be4..e8c1d5ad0 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -5938,7 +5938,7 @@ void pbx_builtin_setvar_helper(struct ast_channel *chan, const char *name, const } AST_LIST_TRAVERSE_SAFE_BEGIN(headp, newvariable, entries) { - if (strcasecmp(ast_var_name(newvariable), nametail) == 0) { + if (strcmp(ast_var_name(newvariable), nametail) == 0) { /* there is already such a variable, delete it */ AST_LIST_REMOVE_CURRENT(headp, entries); ast_var_delete(newvariable); |