unbreak pa_idxset_rrobin

This commit is contained in:
Lennart Poettering 2008-09-09 02:14:27 +03:00
parent 3a46bbeba5
commit 4050447230

View file

@ -318,8 +318,7 @@ void* pa_idxset_rrobin(pa_idxset *s, uint32_t *idx) {
hash = *idx % NBUCKETS; hash = *idx % NBUCKETS;
if (!(e = index_scan(s, hash, *idx))) e = index_scan(s, hash, *idx);
return NULL;
if (e && e->iterate_next) if (e && e->iterate_next)
e = e->iterate_next; e = e->iterate_next;