modified: src/llist.c

sql
simon 2024-12-11 11:13:45 +01:00
parent 32cc02846b
commit 4fe323c441
1 changed files with 1 additions and 1 deletions

View File

@ -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;