projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bcff2d
)
Fix divide by zero (bugs #2268 and 2259)
author
Mark Spencer
<markster@digium.com>
Thu, 19 Aug 2004 18:52:56 +0000
(18:52 +0000)
committer
Mark Spencer
<markster@digium.com>
Thu, 19 Aug 2004 18:52:56 +0000
(18:52 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3626
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
dsp.c
patch
|
blob
|
history
diff --git
a/dsp.c
b/dsp.c
index
5d61ff8
..
e637aa6
100755
(executable)
--- a/
dsp.c
+++ b/
dsp.c
@@
-1228,6
+1228,9
@@
static int __ast_dsp_silence(struct ast_dsp *dsp, short *s, int len, int *totals
int accum;
int x;
int res = 0;
+
+ if (!len)
+ return 0;
accum = 0;
for (x=0;x<len; x++)