From: antirez Date: Wed, 22 Feb 2012 08:52:29 +0000 (+0100) Subject: Merge remote-tracking branch 'origin/unstable' into unstable X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/467d703eadd1578f93544bb5a7b6e40685a3b8ac?hp=30c06ae6b43a5909d842011cc6dd1443d056c684 Merge remote-tracking branch 'origin/unstable' into unstable --- diff --git a/src/t_zset.c b/src/t_zset.c index b8ad2fc6..d482d4c2 100644 --- a/src/t_zset.c +++ b/src/t_zset.c @@ -502,7 +502,7 @@ int zzlIsInRange(unsigned char *zl, zrangespec *range) { return 0; p = ziplistIndex(zl,-1); /* Last score. */ - redisAssert(p != NULL); + if (p == NULL) return 0; /* Empty sorted set */ score = zzlGetScore(p); if (!zslValueGteMin(score,range)) return 0;