Commit e67fb915 authored by antirez's avatar antirez
Browse files

adlist: fix final list count in listJoin().

parent 79226cb9
...@@ -354,6 +354,7 @@ void listJoin(list *l, list *o) { ...@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment