From 573373802ef8699503a90d5559c54d9e03ff2244 Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 13 Mar 2012 12:59:27 +0100 Subject: [PATCH] c->bufpos initialization moved for aesthetics. --- src/networking.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/networking.c b/src/networking.c index 40aad836..14c5dcce 100644 --- a/src/networking.c +++ b/src/networking.c @@ -22,7 +22,6 @@ int listMatchObjects(void *a, void *b) { redisClient *createClient(int fd) { redisClient *c = zmalloc(sizeof(redisClient)); - c->bufpos = 0; /* passing -1 as fd it is possible to create a non connected client. * This is useful since all the Redis commands needs to be executed @@ -42,6 +41,7 @@ redisClient *createClient(int fd) { selectDb(c,0); c->fd = fd; + c->bufpos = 0; c->querybuf = sdsempty(); c->reqtype = 0; c->argc = 0;