Skip to content
Snippets Groups Projects
Commit 44a9aab9 authored by Tilghman Lesher's avatar Tilghman Lesher
Browse files

Merged revisions 241765 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r241765 | tilghman | 2010-01-20 23:53:17 -0600 (Wed, 20 Jan 2010) | 2 lines
  
  Guard against division by zero.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@241766 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent e469483d
No related branches found
No related tags found
No related merge requests found
......@@ -289,7 +289,11 @@ static int math(struct ast_channel *chan, const char *cmd, char *parse,
int inum1 = fnum1;
int inum2 = fnum2;
ftmp = (inum1 % inum2);
if (inum2 == 0) {
ftmp = 0;
} else {
ftmp = (inum1 % inum2);
}
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment