Reclaim space from the client querybuf if needed.

This commit is contained in:
antirez
2012-03-14 15:32:30 +01:00
parent 739803c064
commit ae22bf1ef6
4 changed files with 33 additions and 3 deletions

View File

@ -287,6 +287,7 @@ struct redisClient *createFakeClient(void) {
selectDb(c,0);
c->fd = -1;
c->querybuf = sdsempty();
c->querybuf_peak = 0;
c->argc = 0;
c->argv = NULL;
c->bufpos = 0;