summaryrefslogtreecommitdiff
path: root/zaptel.c
diff options
context:
space:
mode:
Diffstat (limited to 'zaptel.c')
-rwxr-xr-xzaptel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zaptel.c b/zaptel.c
index c03c33d..8789a11 100755
--- a/zaptel.c
+++ b/zaptel.c
@@ -702,7 +702,7 @@ static int zt_reallocbufs(struct zt_chan *ss, int j, int numbufs)
spin_lock_irqsave(&ss->lock, flags);
ss->blocksize = j; /* set the blocksize */
oldbuf = ss->readbuf[0]; /* Keep track of the old buffer */
-
+ ss->readbuf[0] = NULL;
if (newbuf) {
for (x=0;x<numbufs;x++) {
ss->readbuf[x] = newbuf + x * j;