Fix bug in iso_dir_iter_remove(), ticket #127.
This commit is contained in:
parent
0dad87f035
commit
b9331ba5c1
@ -522,7 +522,7 @@ int iso_dir_iter_remove(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