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:
parent
9c57314489
commit
a1bc89b236
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user