Make usage of calloc()'s arguments consistent with rest of code base
This commit is contained in:
@@ -1966,7 +1966,7 @@ static int init_certinfo(struct SessionHandle *data,
|
||||
Curl_ssl_free_certinfo(data);
|
||||
|
||||
ci->num_of_certs = num;
|
||||
table = calloc(sizeof(struct curl_slist *) * num, 1);
|
||||
table = calloc((size_t)num, sizeof(struct curl_slist *));
|
||||
if(!table)
|
||||
return 1;
|
||||
|
||||
|
Reference in New Issue
Block a user