From: antirez Date: Mon, 26 Oct 2009 22:06:19 +0000 (+0100) Subject: fix for ZRANGEBYSCORE X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/dbbc7285eee02ed4fed7d460d3407b02a271da72 fix for ZRANGEBYSCORE --- diff --git a/redis.c b/redis.c index 09237345..3afceec0 100644 --- a/redis.c +++ b/redis.c @@ -4128,7 +4128,7 @@ static void zrangebyscoreCommand(redisClient *c) { lenobj = createObject(REDIS_STRING,NULL); addReply(c,lenobj); - while(ln->score <= max) { + while(ln && ln->score <= max) { ele = ln->obj; addReplyBulkLen(c,ele); addReply(c,ele);