mirror of
https://github.com/fluencelabs/redis
synced 2025-07-04 03:11:34 +00:00
adlist: fix final list count in listJoin().
This commit is contained in:
@ -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;
|
||||||
|
Reference in New Issue
Block a user