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
d275a942
Commit
d275a942
authored
Feb 08, 2015
by
antirez
Browse files
dict.c: reset emptylen when bucket is not empty.
Fixed by @oranagra, thank you.
parent
9a28ead0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dict.c
View file @
d275a942
...
...
@@ -811,6 +811,7 @@ unsigned int dictGetSomeKeys(dict *d, dictEntry **des, unsigned int count) {
emptylen
=
0
;
}
}
else
{
emptylen
=
0
;
while
(
he
)
{
/* Collect all the elements of the buckets found non
* empty while iterating. */
...
...
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