mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-11-03 20:38:59 +00:00 
			
		
		
		
	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
This commit is contained in:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user