fix for ZRANGEBYSCORE

This commit is contained in:
antirez 2009-10-26 23:06:19 +01:00
parent 50c55df529
commit dbbc7285ee

View File

@ -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);