adlist: fix final list count in listJoin().

This commit is contained in:
antirez 2017-05-03 14:53:56 +02:00
parent 79226cb9fa
commit e67fb915eb

View File

@ -354,6 +354,7 @@ void listJoin(list *l, list *o) {
l->head = o->head; l->head = o->head;
l->tail = o->tail; l->tail = o->tail;
l->len += o->len;
/* Setup other as an empty list. */ /* Setup other as an empty list. */
o->head = l->tail = NULL; o->head = l->tail = NULL;