]> git.saurik.com Git - redis.git/blobdiff - src/t_zset.c
anetPeerToString() automatically populates ip/port with something that may be provide...
[redis.git] / 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;