]> git.saurik.com Git - redis.git/blobdiff - src/aof.c
Explicitly zero zval since it is stored on the stack
[redis.git] / src / aof.c
index cd7c48d3f0dfe76d24cd5ce0f10346f56c1f3ec5..5d75c3745807007651082073072d0e0f0ad73557 100644 (file)
--- a/src/aof.c
+++ b/src/aof.c
@@ -460,7 +460,7 @@ int rewriteAppendOnlyFile(char *filename) {
                         }
                         zzlNext(zl,&eptr,&sptr);
                     }
-                } else if (o->encoding == REDIS_ENCODING_RAW) {
+                } else if (o->encoding == REDIS_ENCODING_SKIPLIST) {
                     zset *zs = o->ptr;
                     dictIterator *di = dictGetIterator(zs->dict);
                     dictEntry *de;