]> git.saurik.com Git - redis.git/commitdiff
Intialize bufpos in the fake client
authorPieter Noordhuis <pcnoordhuis@gmail.com>
Thu, 2 Sep 2010 12:17:53 +0000 (14:17 +0200)
committerPieter Noordhuis <pcnoordhuis@gmail.com>
Thu, 2 Sep 2010 17:52:04 +0000 (19:52 +0200)
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. */