mirror of
https://github.com/curl/curl.git
synced 2026-08-26 16:23:32 +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
|
|
@ -91,7 +91,7 @@ struct curl_slist *curl_slist_append(struct curl_slist *list,
|
|||
struct curl_slist *last;
|
||||
struct curl_slist *new_item;
|
||||
|
||||
new_item = (struct curl_slist *) malloc(sizeof(struct curl_slist));
|
||||
new_item = malloc(sizeof(struct curl_slist));
|
||||
if(new_item) {
|
||||
char *dupdata = strdup(data);
|
||||
if(dupdata) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue