mirror of
https://github.com/curl/curl.git
synced 2026-08-25 10:43:34 +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
|
|
@ -2063,7 +2063,7 @@ CURLcode Curl_http(struct connectdata *conn, bool *done)
|
|||
if(!data->state.proto.http) {
|
||||
/* Only allocate this struct if we don't already have it! */
|
||||
|
||||
http = (struct HTTP *)calloc(sizeof(struct HTTP), 1);
|
||||
http = calloc(sizeof(struct HTTP), 1);
|
||||
if(!http)
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
data->state.proto.http = http;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue