Commit d275a942 authored by antirez's avatar antirez
Browse files

dict.c: reset emptylen when bucket is not empty.

Fixed by @oranagra, thank you.
parent 9a28ead0
......@@ -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. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment