mirror of
https://github.com/fluencelabs/redis
synced 2025-04-02 07:41:04 +00:00
first skiplist fix, courtesy of valgrind
This commit is contained in:
parent
ace4ee541a
commit
913e9d6bca
2
redis.c
2
redis.c
@ -3744,7 +3744,7 @@ static void zslInsert(zskiplist *zsl, double score, robj *obj) {
|
||||
|
||||
x = zsl->header;
|
||||
for (i = zsl->level-1; i >= 0; i--) {
|
||||
while (x->forward[i]->score < score)
|
||||
while (x->forward[i] && x->forward[i]->score < score)
|
||||
x = x->forward[i];
|
||||
update[i] = x;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user