diff --git a/src/dict.c b/src/dict.c index 8f25c14b..716d03fb 100644 --- a/src/dict.c +++ b/src/dict.c @@ -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. */