Fix a null dereference from lists/trees

This commit is contained in:
Kevin Lange 2014-04-13 02:02:17 -07:00
parent bf5d607a83
commit d25e66b4bf

View File

@ -193,6 +193,9 @@ void list_merge(list_t * target, list_t * source) {
foreach(node, source) {
node->owner = target;
}
if (source->head) {
source->head->prev = target->tail;
}
if (target->tail) {
target->tail->next = source->head;
} else {