mirror of
https://github.com/curl/curl.git
synced 2026-07-25 14:17:25 +03:00
code simplification
This commit is contained in:
parent
6a0d3233ff
commit
343c4c7072
1 changed files with 1 additions and 6 deletions
|
|
@ -190,12 +190,7 @@ struct ftp_parselist_data {
|
|||
|
||||
struct ftp_parselist_data *Curl_ftp_parselist_data_alloc(void)
|
||||
{
|
||||
struct ftp_parselist_data *parselist_data =
|
||||
malloc(sizeof(struct ftp_parselist_data));
|
||||
if(!parselist_data)
|
||||
return ZERO_NULL;
|
||||
memset(parselist_data, 0, sizeof(struct ftp_parselist_data));
|
||||
return parselist_data;
|
||||
return calloc(1, sizeof(struct ftp_parselist_data));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue