code simplification

This commit is contained in:
Yang Tse 2010-06-09 16:48:19 +02:00
parent 6a0d3233ff
commit 343c4c7072

View File

@ -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));
}