summaryrefslogtreecommitdiff
path: root/read.c
diff options
context:
space:
mode:
authorcdliuqiang@gmail.com <cdliuqiang@gmail.com>2017-08-16 12:36:35 +0800
committerJan-Erik Rediger <janerik@fnordig.de>2018-01-05 16:19:54 +0100
commit9219556386a928f86ef38a36b081c7cf42d5e87a (patch)
tree20387a9e057735c39845e92887a0bc2c09f7314f /read.c
parent43284ee4958dbc7996e293a215d99f0051356f37 (diff)
calloc param fixes and NULL check
Diffstat (limited to 'read.c')
-rw-r--r--read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/read.c b/read.c
index 50333b5..061bbda 100644
--- a/read.c
+++ b/read.c
@@ -416,7 +416,7 @@ static int processItem(redisReader *r) {
redisReader *redisReaderCreateWithFunctions(redisReplyObjectFunctions *fn) {
redisReader *r;
- r = calloc(sizeof(redisReader),1);
+ r = calloc(1,sizeof(redisReader));
if (r == NULL)
return NULL;