aboutsummaryrefslogtreecommitdiff
path: root/lib/easy.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-09-06 04:47:14 +0000
committerYang Tse <yangsita@gmail.com>2008-09-06 04:47:14 +0000
commita622fd90b4c563a4fced20c5b88cb57537e809b0 (patch)
treeb0b3c28505d41d062f7828c0d1e13e3aa9a351a8 /lib/easy.c
parent861b647e7b1da564b831a5b07312a30feb7b6c58 (diff)
remove unnecessary typecasting of calloc()
Diffstat (limited to 'lib/easy.c')
-rw-r--r--lib/easy.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/easy.c b/lib/easy.c
index 741dbb217..1dba68c8f 100644
--- a/lib/easy.c
+++ b/lib/easy.c
@@ -600,8 +600,7 @@ CURL *curl_easy_duphandle(CURL *incurl)
bool fail = TRUE;
struct SessionHandle *data=(struct SessionHandle *)incurl;
- struct SessionHandle *outcurl = (struct SessionHandle *)
- calloc(sizeof(struct SessionHandle), 1);
+ struct SessionHandle *outcurl = calloc(sizeof(struct SessionHandle), 1);
if(NULL == outcurl)
return NULL; /* failure */