Intialize bufpos in the fake client

This commit is contained in:
Pieter Noordhuis 2010-09-02 14:17:53 +02:00
parent 0537e7bf80
commit 2403fc9fde

View File

@ -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. */