mirror of
https://github.com/curl/curl.git
synced 2026-08-26 20:23:32 +03:00
remove unnecessary typecasting of calloc()
This commit is contained in:
parent
861b647e7b
commit
a622fd90b4
15 changed files with 25 additions and 27 deletions
|
|
@ -202,7 +202,7 @@ static CURLcode file_connect(struct connectdata *conn, bool *done)
|
|||
Curl_reset_reqproto(conn);
|
||||
|
||||
if(!data->state.proto.file) {
|
||||
file = (struct FILEPROTO *)calloc(sizeof(struct FILEPROTO), 1);
|
||||
file = calloc(sizeof(struct FILEPROTO), 1);
|
||||
if(!file) {
|
||||
free(real_path);
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue