Commit 541eb238 authored by antirez's avatar antirez
Browse files

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

Fixed by @oranagra, thank you.
parent 08ad5176
...@@ -808,6 +808,7 @@ unsigned int dictGetSomeKeys(dict *d, dictEntry **des, unsigned int count) { ...@@ -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. */
......
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