diff --git a/src/dict.c b/src/dict.c index 69dfb757..43add192 100644 --- a/src/dict.c +++ b/src/dict.c @@ -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. */