]> git.saurik.com Git - redis.git/blobdiff - src/aof.c
Intialize bufpos in the fake client
[redis.git] / src / aof.c
index 1ed2363ad8efd9309e3f8a68386fcfb5cec58330..58dd5538f08fb33560d52c9eb87acf23bf73a4f5 100644 (file)
--- a/src/aof.c
+++ b/src/aof.c
@@ -189,6 +189,7 @@ struct redisClient *createFakeClient(void) {
     c->querybuf = sdsempty();
     c->argc = 0;
     c->argv = NULL;
+    c->bufpos = 0;
     c->flags = 0;
     /* We set the fake client as a slave waiting for the synchronization
      * so that Redis will not try to send replies to this client. */