diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-12-25 05:19:48 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-12-25 05:19:48 +0000 |
commit | 1c25fc75aa354b564efc816f284153f1a7fbb7b0 (patch) | |
tree | 7332ad9205bfd7554918fbf0f55a2f30e8e9ced9 /funcs/func_math.c | |
parent | 11ed9ee0a122a0b5f1ddc69004f041f335737df4 (diff) |
Fix an error introduced by copying and pasting the handling of the >= operator
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: http://svn.digium.com/svn/asterisk/branches/1.2@48955 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs/func_math.c')
-rw-r--r-- | funcs/func_math.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/funcs/func_math.c b/funcs/func_math.c index e8a49acc8..a838e4f99 100644 --- a/funcs/func_math.c +++ b/funcs/func_math.c @@ -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'; |