code simplification
This commit is contained in:
parent
6a0d3233ff
commit
343c4c7072
@ -190,12 +190,7 @@ struct ftp_parselist_data {
|
|||||||
|
|
||||||
struct ftp_parselist_data *Curl_ftp_parselist_data_alloc(void)
|
struct ftp_parselist_data *Curl_ftp_parselist_data_alloc(void)
|
||||||
{
|
{
|
||||||
struct ftp_parselist_data *parselist_data =
|
return calloc(1, sizeof(struct ftp_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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user