[Asterisk-cvs] zaptel wct4xxp.c,1.84,1.85

markster markster
Mon Aug 15 16:01:02 CDT 2005


Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/tmp/cvs-serv5999

Modified Files:
	wct4xxp.c 
Log Message:
Don't mute anything with no (or empty) buffers


Index: wct4xxp.c
===================================================================
RCS file: /usr/cvsroot/zaptel/wct4xxp.c,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -d -r1.84 -r1.85
--- wct4xxp.c	14 Aug 2005 16:15:30 -0000	1.84
+++ wct4xxp.c	15 Aug 2005 20:03:54 -0000	1.85
@@ -578,7 +578,7 @@
 					int y;
 					spin_lock_irqsave(&chan->lock, flags);
 					for (y=0;y<chan->numbufs;y++) {
-						if (chan->readidx[y]) 
+						if ((chan->inreadbuf > -1) && (chan->readidx[y]))
 							memset(chan->readbuf[chan->inreadbuf], ZT_XLAW(0, chan), chan->readidx[y]);
 					}
 					spin_unlock_irqrestore(&chan->lock, flags);




More information about the svn-commits mailing list