mirror of
https://github.com/fluencelabs/redis
synced 2025-05-29 10:11:19 +00:00
dict.c: reset emptylen when bucket is not empty.
Fixed by @oranagra, thank you.
This commit is contained in:
parent
08ad51762b
commit
541eb23895
@ -808,6 +808,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. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user