]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix an error introduced by copying and pasting the handling of the >= operator
authorRussell Bryant <russell@russellbryant.com>
Mon, 25 Dec 2006 05:19:48 +0000 (05:19 +0000)
committerRussell Bryant <russell@russellbryant.com>
Mon, 25 Dec 2006 05:19:48 +0000 (05:19 +0000)
for the MATH function.  If a single equal sign was used as an operator, the
function would treat it is as if it were the >= operator.  Now, it properly
handles it as an invalid operator.
(issue #8665, patch by tempest1)

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

funcs/func_math.c

index e8a49acc8ce560f3a8f5572964316ac0071c7c91..a838e4f998fe56ecb41669b4fbc22e27528c50c2 100644 (file)
@@ -124,7 +124,6 @@ static char *builtin_function_math(struct ast_channel *chan, char *cmd, char *da
                        iaction = LTEFUNCTION;
                }
        } else if ((op = strchr(mvalue1, '='))) {
-               iaction = GTFUNCTION;
                *op = '\0';
                if (*(op+1) == '=') {
                        *++op = '\0';