mirror of
https://gitlab.xiph.org/xiph/icecast-common.git
synced 2024-12-04 14:46:31 -05:00
Fix: Handle an iterator of NULL correctly
This commit is contained in:
parent
d5d1956f52
commit
a75e064256
@ -289,6 +289,9 @@ igloo_ro_t igloo_list_iterator_next(igloo_list_iterator_t *iterator
|
||||
{
|
||||
size_t physical;
|
||||
|
||||
if (!iterator)
|
||||
return igloo_RO_NULL;
|
||||
|
||||
physical = iterator->idx + iterator->list->offset;
|
||||
|
||||
if (physical >= iterator->list->fill)
|
||||
|
Loading…
Reference in New Issue
Block a user