summaryrefslogtreecommitdiffstats
path: root/src/pulsecore
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-09-09 02:14:27 +0300
committerLennart Poettering <lennart@poettering.net>2008-09-09 02:14:27 +0300
commit4050447230040983fdc07f665cf4ec3f23dde217 (patch)
treee963f6223ed63272a7c1a819a026ec1ef52b6042 /src/pulsecore
parent3a46bbeba509ed68dfaf28d94be3efac88a2613b (diff)
unbreak pa_idxset_rrobin
Diffstat (limited to 'src/pulsecore')
-rw-r--r--src/pulsecore/idxset.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pulsecore/idxset.c b/src/pulsecore/idxset.c
index b6423efd..2de64069 100644
--- a/src/pulsecore/idxset.c
+++ b/src/pulsecore/idxset.c
@@ -318,8 +318,7 @@ void* pa_idxset_rrobin(pa_idxset *s, uint32_t *idx) {
hash = *idx % NBUCKETS;
- if (!(e = index_scan(s, hash, *idx)))
- return NULL;
+ e = index_scan(s, hash, *idx);
if (e && e->iterate_next)
e = e->iterate_next;