Improve calloc() correctness

[It doesn't _actually_ matter, but technically
the order argument is: (number of items, size of items)]

Closes #279
This commit is contained in:
jinguoli 2014-11-03 12:45:42 +08:00 committed by Matt Stancliff
parent 9c57314489
commit a1bc89b236

View File

@ -559,7 +559,7 @@ static int processItem(redisReader *r) {
redisReader *redisReaderCreate(void) { redisReader *redisReaderCreate(void) {
redisReader *r; redisReader *r;
r = calloc(sizeof(redisReader),1); r = calloc(1,sizeof(redisReader));
if (r == NULL) if (r == NULL)
return NULL; return NULL;