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 edda00b902
commit 8ddc14523f

View File

@ -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. */