modified: src/llist.c
parent
32cc02846b
commit
4fe323c441
|
@ -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 (head->cmpFn(c->data, key)) {
|
if (head->cmpFn(c->data, key) == 0) {
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
c = c->next;
|
c = c->next;
|
||||||
|
|
Loading…
Reference in New Issue