From: Pieter Noordhuis Date: Thu, 2 Sep 2010 12:17:53 +0000 (+0200) Subject: Intialize bufpos in the fake client X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/2403fc9fdec6113f10aa54770714e550eaab1b69 Intialize bufpos in the fake client --- diff --git a/src/aof.c b/src/aof.c index 1ed2363a..58dd5538 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. */