diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-03-03 09:25:59 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-03-03 09:25:59 +0000 |
commit | e2f7030202bac42e7f08309ba71e370fba714623 (patch) | |
tree | 2875013012b11f0970b58ae184e929cba75fb63c /lib/file.c | |
parent | 533519cc9ccda476ba99cd3e97f82e75a4847a7f (diff) | |
download | curl-e2f7030202bac42e7f08309ba71e370fba714623.tar.gz |
rename struct FILE to FILEPROTO, to prevent it from causing trouble with
the plain old FILE typedef.
Diffstat (limited to 'lib/file.c')
-rw-r--r-- | lib/file.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/file.c b/lib/file.c index dcf59d06e..e10fa8108 100644 --- a/lib/file.c +++ b/lib/file.c @@ -95,18 +95,17 @@ CURLcode Curl_file_connect(struct connectdata *conn) { char *real_path = curl_unescape(conn->path, 0); - struct FILE *file; + struct FILEPROTO *file; int fd; #if defined(WIN32) || defined(__EMX__) int i; char *actual_path; #endif - file = (struct FILE *)malloc(sizeof(struct FILE)); + file = (struct FILEPROTO *)calloc(sizeof(struct FILEPROTO), 1); if(!file) return CURLE_OUT_OF_MEMORY; - memset(file, 0, sizeof(struct FILE)); conn->proto.file = file; #if defined(WIN32) || defined(__EMX__) |