From 54acc8f08759713338b6cb6c94916438bbd91b80 Mon Sep 17 00:00:00 2001 From: Justin Brewer Date: Tue, 27 Mar 2018 13:44:01 -0500 Subject: Remove redundant zero stores calloc is guaranteed to provide a zero-initialized buffer. There is no need to set fields to zero explicitly. Signed-off-by: Justin Brewer --- read.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'read.c') diff --git a/read.c b/read.c index 061bbda..4baa74e 100644 --- a/read.c +++ b/read.c @@ -420,8 +420,6 @@ redisReader *redisReaderCreateWithFunctions(redisReplyObjectFunctions *fn) { if (r == NULL) return NULL; - r->err = 0; - r->errstr[0] = '\0'; r->fn = fn; r->buf = sdsempty(); r->maxbuf = REDIS_READER_MAX_BUF; -- cgit v1.2.3