diff --git a/src/ll.c b/src/ll.c index 48e3def..bbb0da1 100644 --- a/src/ll.c +++ b/src/ll.c @@ -69,6 +69,7 @@ void* ll_find(ll* ll, void* data, compare_func compare) { if (compare(data, head->data)) { to_return = head->data; } + head = head->next; } return to_return; }