summaryrefslogtreecommitdiff
path: root/src/adlist.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2017-05-03 14:53:56 +0200
committerantirez <antirez@gmail.com>2017-05-03 14:54:14 +0200
commite67fb915eb0532e205b310b0ede5993173dd2d71 (patch)
tree73a9870bd51e894e98a9b9f119644efafa1b53fd /src/adlist.c
parent79226cb9fad57c958417263e52f7bb7f9b13597c (diff)
downloadredis-e67fb915eb0532e205b310b0ede5993173dd2d71.tar.gz
adlist: fix final list count in listJoin().
Diffstat (limited to 'src/adlist.c')
-rw-r--r--src/adlist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/adlist.c b/src/adlist.c
index 0f2e4a559..f0a261b61 100644
--- a/src/adlist.c
+++ b/src/adlist.c
@@ -354,6 +354,7 @@ void listJoin(list *l, list *o) {
l->head = o->head;
l->tail = o->tail;
+ l->len += o->len;
/* Setup other as an empty list. */
o->head = l->tail = NULL;