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