From 833ebe4ab96630a03d08691c60d566dd46ce5021 Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 3 May 2017 14:53:56 +0200 Subject: [PATCH] adlist: fix final list count in listJoin(). --- src/adlist.c | 1 + 1 file changed, 1 insertion(+) 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;