]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Variables have always been case-sensitive, so we should not be removing case-insensit...
authorTilghman Lesher <tilghman@meg.abyt.es>
Tue, 15 Jun 2010 18:25:12 +0000 (18:25 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Tue, 15 Jun 2010 18:25:12 +0000 (18:25 +0000)
Bug reported via the -dev list.  See
http://lists.digium.com/pipermail/asterisk-dev/2010-June/044510.html

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@270583 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/pbx.c

index 6ec070be440ba1b910bf7ca07c55c5e0eed845d0..e8c1d5ad0966eaf3e6911c5a1e7a617893b8d3ae 100644 (file)
@@ -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);