]> git.saurik.com Git - redis.git/commitdiff
zrange now starts to work. zadd still does not support update and will crash or leak...
authorantirez <antirez@gmail.com>
Fri, 23 Oct 2009 20:39:25 +0000 (22:39 +0200)
committerantirez <antirez@gmail.com>
Fri, 23 Oct 2009 20:39:25 +0000 (22:39 +0200)
redis.c

diff --git a/redis.c b/redis.c
index a28ef4919ecc6a3874daf9c0088cab707aa1618c..65e62172b3e4b149872117aa2b545bdccaa43661 100644 (file)
--- a/redis.c
+++ b/redis.c
@@ -3865,7 +3865,7 @@ static void zrangeCommand(redisClient *c) {
 
             addReplySds(c,sdscatprintf(sdsempty(),"*%d\r\n",rangelen));
             for (j = 0; j < rangelen; j++) {
-                ele = ln->forward[0]->obj;
+                ele = ln->obj;
                 addReplyBulkLen(c,ele);
                 addReply(c,ele);
                 addReply(c,shared.crlf);