[list] Fix merge bug
This commit is contained in:
parent
ddc71135af
commit
e844fe53ad
@ -127,7 +127,9 @@ void list_merge(list_t * target, list_t * source) {
|
||||
} else {
|
||||
target->head = source->head;
|
||||
}
|
||||
if (source->tail) {
|
||||
target->tail = source->tail;
|
||||
}
|
||||
target->length += source->length;
|
||||
free(source);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user