From e67fb915eb0532e205b310b0ede5993173dd2d71 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 0f2e4a55..f0a261b6 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;