diff --git a/src/aof.c b/src/aof.c index 1ed2363ad8efd9309e3f8a68386fcfb5cec58330..58dd5538f08fb33560d52c9eb87acf23bf73a4f5 100644 --- 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. */