[list] Fix merge bug

This commit is contained in:
Kevin Lange 2011-12-15 21:13:47 -06:00
parent ddc71135af
commit e844fe53ad

View File

@ -127,7 +127,9 @@ void list_merge(list_t * target, list_t * source) {
} else {
target->head = source->head;
}
target->tail = source->tail;
if (source->tail) {
target->tail = source->tail;
}
target->length += source->length;
free(source);
}