]> git.saurik.com Git - redis.git/blobdiff - src/aof.c
rioInitWithFile nad rioInitWithBuffer functions now take a rio structure pointer...
[redis.git] / src / aof.c
index b86357de59ebabe1e73c9167ba54e8b667cd9bb3..0dcf905eef99eb2c01cca60ae9b5fd8346163f61 100644 (file)
--- a/src/aof.c
+++ b/src/aof.c
@@ -421,7 +421,7 @@ int rewriteAppendOnlyFile(char *filename) {
         return REDIS_ERR;
     }
 
-    aof = rioInitWithFile(fp);
+    rioInitWithFile(&aof,fp);
     for (j = 0; j < server.dbnum; j++) {
         char selectcmd[] = "*2\r\n$6\r\nSELECT\r\n";
         redisDb *db = server.db+j;