mirror of
https://github.com/curl/curl.git
synced 2026-05-13 11:16:24 +03:00
typecast to prevent compiler warning
This commit is contained in:
parent
1d49c04545
commit
07dbfa25a0
1 changed files with 1 additions and 1 deletions
|
|
@ -1053,7 +1053,7 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option,
|
|||
to mark that postfields is used rather than read function or
|
||||
form data.
|
||||
*/
|
||||
p = malloc(data->set.postfieldsize? data->set.postfieldsize: 1);
|
||||
p = malloc((size_t)(data->set.postfieldsize?data->set.postfieldsize:1));
|
||||
|
||||
if (!p)
|
||||
result = CURLE_OUT_OF_MEMORY;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue