From e68e5ec9adb20f793ad0319b181cfdeea336826d Mon Sep 17 00:00:00 2001 From: kpfleming Date: Tue, 18 Dec 2007 18:36:14 +0000 Subject: even though it's not very logical, having a 'next sample' number of zero for a sample is valid, so restore the ability to set one git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3516 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- zaptel-base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zaptel-base.c') diff --git a/zaptel-base.c b/zaptel-base.c index acd4743..309b813 100644 --- a/zaptel-base.c +++ b/zaptel-base.c @@ -2711,7 +2711,7 @@ static int ioctl_load_zone(unsigned long data) } for (x = 0; x < th.count; x++) { - if (samples[x] && next[x]) + if (samples[x]) samples[x]->next = samples[next[x]]; } -- cgit v1.2.3