]> git.saurik.com Git - redis.git/blobdiff - src/t_zset.c
hiredis/redis changes for speed with big payloads: read buffer size set
[redis.git] / src / t_zset.c
index a7ee1839075b2aa64b98ce5efb30976e672e8be2..5dab64dc01c2990e736b32984ded1b2861a67215 100644 (file)
@@ -929,7 +929,7 @@ void zaddGenericCommand(redisClient *c, int incr) {
             } else {
                 znode = zslInsert(zs->zsl,score,ele);
                 incrRefCount(ele); /* Inserted in skiplist. */
-                redisAssertWithInfo(c,curobj,dictAdd(zs->dict,ele,&znode->score) == DICT_OK);
+                redisAssertWithInfo(c,NULL,dictAdd(zs->dict,ele,&znode->score) == DICT_OK);
                 incrRefCount(ele); /* Added to dictionary. */
 
                 signalModifiedKey(c->db,key);