linked-list: Don't require an argument for the item when enumerating

This commit is contained in:
Tobias Brunner
2013-07-17 17:42:53 +02:00
parent cf4172637a
commit 1a9528f916
2 changed files with 21 additions and 1 deletions
+4 -1
View File
@@ -138,7 +138,10 @@ METHOD(enumerator_t, enumerate, bool,
this->finished = TRUE;
return FALSE;
}
*item = this->current->value;
if (item)
{
*item = this->current->value;
}
return TRUE;
}