Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
e67fb915
Commit
e67fb915
authored
May 03, 2017
by
antirez
Browse files
adlist: fix final list count in listJoin().
parent
79226cb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/adlist.c
View file @
e67fb915
...
@@ -354,6 +354,7 @@ void listJoin(list *l, list *o) {
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment