diff options
author | Richard Mudgett <rmudgett@digium.com> | 2012-05-31 18:39:30 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2012-05-31 18:39:30 +0000 |
commit | dd2427c1414d62cd7e3c867f17de9d6dbac844fe (patch) | |
tree | 5760fb673e236d0f58b094240de81ca9780cd135 /funcs/func_math.c | |
parent | fdb002a43a819542693815767a0ca9aba135f18c (diff) |
Coverity Report: Fix issues for error type REVERSE_INULL (core modules)
* Fixes findings: 0-2,5,7-15,24-26,28-31
(issue ASTERISK-19648)
Reported by: Matt Jordan
........
Merged revisions 368039 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 368042 from http://svn.asterisk.org/svn/asterisk/branches/10
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@368052 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'funcs/func_math.c')
-rw-r--r-- | funcs/func_math.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/funcs/func_math.c b/funcs/func_math.c index e7217c7b3..e745c4733 100644 --- a/funcs/func_math.c +++ b/funcs/func_math.c @@ -57,7 +57,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") <replaceable>number1</replaceable><replaceable>op</replaceable><replaceable>number2</replaceable> where the possible values for <replaceable>op</replaceable> are:</para> - <para>+,-,/,*,%,<<,>>,^,AND,OR,XOR,<,%gt;,>=,<=,== (and behave as their C equivalents)</para> + <para>+,-,/,*,%,<<,>>,^,AND,OR,XOR,<,>,<=,>=,== (and behave as their C equivalents)</para> </parameter> <parameter name="type"> <para>Wanted type of result:</para> @@ -254,7 +254,7 @@ static int math(struct ast_channel *chan, const char *cmd, char *parse, } } - if (!mvalue1 || !mvalue2) { + if (!mvalue2) { ast_log(LOG_WARNING, "Supply all the parameters - just this once, please\n"); return -1; |