Fix a null dereference from lists/trees
This commit is contained in:
parent
bf5d607a83
commit
d25e66b4bf
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user