[Asterisk-cvs] asterisk dsp.c,1.28,1.29

markster at lists.digium.com markster at lists.digium.com
Thu Aug 19 15:06:51 CDT 2004


Update of /usr/cvsroot/asterisk
In directory localhost.localdomain:/tmp/cvs-serv25593

Modified Files:
	dsp.c 
Log Message:
Fix divide by zero (bugs #2268 and 2259)


Index: dsp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/dsp.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- dsp.c	24 Jul 2004 21:06:54 -0000	1.28
+++ dsp.c	19 Aug 2004 18:52:56 -0000	1.29
@@ -1228,6 +1228,9 @@
 	int accum;
 	int x;
 	int res = 0;
+
+	if (!len)
+		return 0;
 	
 	accum = 0;
 	for (x=0;x<len; x++) 




More information about the svn-commits mailing list