Skip to content

Commit

Permalink
Misc refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Aug 14, 2010
1 parent a566f0c commit 70d07c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/list.c
Expand Up @@ -88,7 +88,7 @@ ListNode *
List_find(List *self, void *val) {
ListIterator *it = ListIterator_new(self, LIST_HEAD);
ListNode *node;
while (node = ListIterator_next(it)) {
while ((node = ListIterator_next(it))) {
if (self->match) {
if (self->match(val, node->val)) {
ListIterator_destroy(it);
Expand Down

0 comments on commit 70d07c5

Please sign in to comment.