From c355d9667bed47f9d17932c4faf9abbf12b2a4eb Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Mon, 25 Dec 2006 05:19:48 +0000 Subject: [PATCH] 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: https://origsvn.digium.com/svn/asterisk/branches/1.2@48955 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- funcs/func_math.c | 1 - 1 file changed, 1 deletion(-) diff --git a/funcs/func_math.c b/funcs/func_math.c index e8a49acc8c..a838e4f998 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'; -- 2.47.2