projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a0d323
)
code simplification
author
Yang Tse
<yangsita@gmail.com>
Wed, 9 Jun 2010 14:48:19 +0000
(16:48 +0200)
committer
Yang Tse
<yangsita@gmail.com>
Wed, 9 Jun 2010 14:48:19 +0000
(16:48 +0200)
lib/ftplistparser.c
patch
|
blob
|
history
diff --git
a/lib/ftplistparser.c
b/lib/ftplistparser.c
index
3dd6617
..
08a7942
100644
(file)
--- a/
lib/ftplistparser.c
+++ b/
lib/ftplistparser.c
@@
-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));
}