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;