From 4fe323c441f9b7b8007f5f8c8f2ddb78cb060f9d Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 11 Dec 2024 11:13:45 +0100 Subject: [PATCH] modified: src/llist.c --- src/llist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/llist.c b/src/llist.c index cbd7a8e..3aa0ad5 100644 --- a/src/llist.c +++ b/src/llist.c @@ -47,7 +47,7 @@ llist *llistAppend(llist *head, void *data) { llist *llistGet(llist *head, void *key) { llist *c = head; while (c != NULL) { - if (head->cmpFn(c->data, key)) { + if (head->cmpFn(c->data, key) == 0) { return c; } c = c->next;