mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-23 19:20:51 +00:00
linked_list: fix warning if iterator_remove fails
This commit is contained in:
parent
4c3eeed1f8
commit
f8b1697f9f
@ -175,10 +175,10 @@ btstack_linked_item_t * btstack_linked_list_iterator_next(btstack_linked_list_it
|
||||
}
|
||||
|
||||
void btstack_linked_list_iterator_remove(btstack_linked_list_iterator_t * it){
|
||||
it->curr = it->curr->next;
|
||||
if (it->prev->next != it->curr){
|
||||
log_error("prev item %p does not point to curr %p", it->prev, it->curr);
|
||||
}
|
||||
it->curr = it->curr->next;
|
||||
it->prev->next = it->curr;
|
||||
it->advance_on_next = 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user