X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/325d1eb4a86b59eaa8c867b2bb0a7a827d98aaf0..bb975144e4e84b618c8d4f1aa5adae428828b544:/redis.c diff --git a/redis.c b/redis.c index eb0a1730..202b0a69 100644 --- a/redis.c +++ b/redis.c @@ -3776,7 +3776,7 @@ static void zslInsert(zskiplist *zsl, double score, robj *obj) { x->forward[i] = update[i]->forward[i]; update[i]->forward[i] = x; } - x->backward = (update[0] == zsl->header) ? NULL : update[i]; + x->backward = (update[0] == zsl->header) ? NULL : update[0]; if (x->forward[0]) x->forward[0]->backward = x; else