mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
adlist: fix final list count in listJoin().
This commit is contained in:
parent
79226cb9fa
commit
e67fb915eb
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user