mirror of
https://github.com/curl/curl.git
synced 2026-08-03 06:30: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
|
|
@ -341,7 +341,7 @@ int glob_url(URLGlob** glob, char* url, int *urlnum, FILE *error)
|
|||
if(NULL == glob_buffer)
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
|
||||
glob_expand = (URLGlob*)calloc(sizeof(URLGlob), 1);
|
||||
glob_expand = calloc(sizeof(URLGlob), 1);
|
||||
if(NULL == glob_expand) {
|
||||
free(glob_buffer);
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue