summaryrefslogtreecommitdiff
path: root/zaptel-base.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-12-18 18:36:14 +0000
committerkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-12-18 18:36:14 +0000
commite68e5ec9adb20f793ad0319b181cfdeea336826d (patch)
tree105333439a892b89ecc010e024c5d7210b62e56d /zaptel-base.c
parent26aa6bccfb370806b5456fca4ab052cd8e4550f1 (diff)
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
Diffstat (limited to 'zaptel-base.c')
-rw-r--r--zaptel-base.c2
1 files changed, 1 insertions, 1 deletions
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]];
}