Commit 8ddc1452 authored by antirez's avatar antirez
Browse files

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

Fixed by @oranagra, thank you.
parent edda00b9
...@@ -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. */
......
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