Fix bug in iso_dir_iter_remove(), ticket #127.

This commit is contained in:
Vreixo Formoso 2008-03-01 15:57:12 +01:00
parent 0dad87f035
commit b9331ba5c1

View File

@ -522,7 +522,7 @@ int iso_dir_iter_remove(IsoDirIter *iter)
if (iter->pos == pos) {
return ISO_ERROR;
}
while (pos != NULL && pos->next == iter->pos) {
while (pos != NULL && pos->next != iter->pos) {
pos = pos->next;
}
if (pos == NULL) {