bugfix in llistGet function
parent
ca5065d569
commit
32cc02846b
|
@ -47,7 +47,7 @@ llist *llistAppend(llist *head, void *data) {
|
|||
llist *llistGet(llist *head, void *key) {
|
||||
llist *c = head;
|
||||
while (c != NULL) {
|
||||
if (key == c) {
|
||||
if (head->cmpFn(c->data, key)) {
|
||||
return c;
|
||||
}
|
||||
c = c->next;
|
||||
|
|
Loading…
Reference in New Issue