]> git.saurik.com Git - redis.git/commitdiff
Merge remote-tracking branch 'origin/unstable' into unstable
authorantirez <antirez@gmail.com>
Wed, 22 Feb 2012 08:52:29 +0000 (09:52 +0100)
committerantirez <antirez@gmail.com>
Wed, 22 Feb 2012 08:52:29 +0000 (09:52 +0100)
src/t_zset.c

index b8ad2fc6ef4ff901b573e3896dd8c6289da70bb7..d482d4c2f743a199ee41af3e82a86dd8e8544848 100644 (file)
@@ -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;