X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/9de5d4600a404f7bc809c57b8192eb983307f800..dd94771578ca196db564ab3f51ae6ce6b185531c:/src/t_zset.c diff --git a/src/t_zset.c b/src/t_zset.c index 50ad8d43..4812709e 100644 --- a/src/t_zset.c +++ b/src/t_zset.c @@ -1259,10 +1259,11 @@ int zuiNext(zsetopsrc *op, zsetopval *val) { if (op->type == REDIS_SET) { iterset *it = &op->iter.set; if (op->encoding == REDIS_ENCODING_INTSET) { - int64_t ell = val->ell; + int64_t ell; if (!intsetGet(it->is.is,it->is.ii,&ell)) return 0; + val->ell = ell; val->score = 1.0; /* Move to next element. */