mirror of
https://github.com/curl/curl.git
synced 2026-08-25 04:23:36 +03:00
remove unnecessary typecasting of malloc()
This commit is contained in:
parent
a622fd90b4
commit
59e378f48f
31 changed files with 68 additions and 72 deletions
|
|
@ -727,7 +727,7 @@ curl_formadd_ccsid(struct curl_httppost * * httppost,
|
|||
/* Allocate the local curl_forms array. */
|
||||
|
||||
lformlen = ALLOC_GRANULE;
|
||||
lforms = (struct curl_forms *) malloc(lformlen * sizeof * lforms);
|
||||
lforms = malloc(lformlen * sizeof(struct curl_forms));
|
||||
|
||||
if (!lforms)
|
||||
return CURL_FORMADD_MEMORY;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue