[asterisk-commits] russell: branch 1.2 r48955 -
/branches/1.2/funcs/func_math.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sun Dec 24 22:19:49 MST 2006
Author: russell
Date: Sun Dec 24 23:19:48 2006
New Revision: 48955
URL: http://svn.digium.com/view/asterisk?view=rev&rev=48955
Log:
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)
Modified:
branches/1.2/funcs/func_math.c
Modified: branches/1.2/funcs/func_math.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/funcs/func_math.c?view=diff&rev=48955&r1=48954&r2=48955
==============================================================================
--- branches/1.2/funcs/func_math.c (original)
+++ branches/1.2/funcs/func_math.c Sun Dec 24 23:19:48 2006
@@ -124,7 +124,6 @@
iaction = LTEFUNCTION;
}
} else if ((op = strchr(mvalue1, '='))) {
- iaction = GTFUNCTION;
*op = '\0';
if (*(op+1) == '=') {
*++op = '\0';
More information about the asterisk-commits
mailing list