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

Fixed by @oranagra, thank you.
This commit is contained in:
antirez 2015-02-08 11:19:47 +01:00
parent 08ad51762b
commit 541eb23895

View File

@ -808,6 +808,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. */