Ticket #127 also affects iso_dir_iter_take(). Fixed.
This commit is contained in:
parent
b9331ba5c1
commit
241a7295ba
@ -2062,7 +2062,7 @@ IsoDir *iso_node_get_parent(IsoNode *node);
|
|||||||
* you should free the iterator with iso_dir_iter_free.
|
* you should free the iterator with iso_dir_iter_free.
|
||||||
* You musn't delete a child of the same dir, using iso_node_take() or
|
* You musn't delete a child of the same dir, using iso_node_take() or
|
||||||
* iso_node_remove(), while you're using the iterator. You can use
|
* iso_node_remove(), while you're using the iterator. You can use
|
||||||
* iso_node_take_iter() or iso_node_remove_iter() instead.
|
* iso_dir_iter_take() or iso_dir_iter_remove() instead.
|
||||||
*
|
*
|
||||||
* You can use the iterator in the way like this
|
* You can use the iterator in the way like this
|
||||||
*
|
*
|
||||||
|
@ -503,7 +503,7 @@ int iso_dir_iter_take(IsoDirIter *iter)
|
|||||||
if (iter->pos == pos) {
|
if (iter->pos == pos) {
|
||||||
return ISO_ERROR;
|
return ISO_ERROR;
|
||||||
}
|
}
|
||||||
while (pos != NULL && pos->next == iter->pos) {
|
while (pos != NULL && pos->next != iter->pos) {
|
||||||
pos = pos->next;
|
pos = pos->next;
|
||||||
}
|
}
|
||||||
if (pos == NULL) {
|
if (pos == NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user