Commit a1bc89b2 authored by jinguoli's avatar jinguoli Committed by Matt Stancliff
Browse files

Improve calloc() correctness

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

Closes #279
parent 9c573144
......@@ -559,7 +559,7 @@ static int processItem(redisReader *r) {
redisReader *redisReaderCreate(void) {
redisReader *r;
r = calloc(sizeof(redisReader),1);
r = calloc(1,sizeof(redisReader));
if (r == NULL)
return NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment