summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdsp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/dsp.c b/dsp.c
index 5d61ff808..e637aa65b 100755
--- 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++)