aboutsummaryrefslogtreecommitdiffstats
path: root/funcs
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-25 05:19:48 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-25 05:19:48 +0000
commit1c25fc75aa354b564efc816f284153f1a7fbb7b0 (patch)
tree7332ad9205bfd7554918fbf0f55a2f30e8e9ced9 /funcs
parent11ed9ee0a122a0b5f1ddc69004f041f335737df4 (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')
-rw-r--r--funcs/func_math.c1
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';