From dbbc7285eee02ed4fed7d460d3407b02a271da72 Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 26 Oct 2009 23:06:19 +0100 Subject: [PATCH] fix for ZRANGEBYSCORE --- redis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.2