mirror of
https://github.com/fluencelabs/redis
synced 2025-04-05 01:01:04 +00:00
fix for ZRANGEBYSCORE
This commit is contained in:
parent
50c55df529
commit
dbbc7285ee
2
redis.c
2
redis.c
@ -4128,7 +4128,7 @@ static void zrangebyscoreCommand(redisClient *c) {
|
|||||||
lenobj = createObject(REDIS_STRING,NULL);
|
lenobj = createObject(REDIS_STRING,NULL);
|
||||||
addReply(c,lenobj);
|
addReply(c,lenobj);
|
||||||
|
|
||||||
while(ln->score <= max) {
|
while(ln && ln->score <= max) {
|
||||||
ele = ln->obj;
|
ele = ln->obj;
|
||||||
addReplyBulkLen(c,ele);
|
addReplyBulkLen(c,ele);
|
||||||
addReply(c,ele);
|
addReply(c,ele);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user