bugfix in llistGet function

This commit is contained in:
simon committed 2024-12-11 11:12:45 +01:00
1 parent ca5065d569
commit 32cc02846b
1 file changed
+1 -1
+1 -1
View File
@@ -47,7 +47,7 @@ llist *llistAppend(llist *head, void *data) {
llist *llistGet(llist *head, void *key) { llist *llistGet(llist *head, void *key) {
llist *c = head; llist *c = head;
while (c != NULL) { while (c != NULL) {
if (key == c) { if (head->cmpFn(c->data, key)) {
return c; return c;
} }
c = c->next; c = c->next;