summaryrefslogtreecommitdiff
path: root/lib/strdup.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-09-06 05:29:05 +0000
committerYang Tse <yangsita@gmail.com>2008-09-06 05:29:05 +0000
commit59e378f48fed849e8e41f0bc6a10bf7a1732ae8a (patch)
tree2443ceace655d5d830c7c4d7c95869c6a0f93c5c /lib/strdup.c
parenta622fd90b4c563a4fced20c5b88cb57537e809b0 (diff)
downloadcurl-59e378f48fed849e8e41f0bc6a10bf7a1732ae8a.tar.gz
remove unnecessary typecasting of malloc()
Diffstat (limited to 'lib/strdup.c')
-rw-r--r--lib/strdup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/strdup.c b/lib/strdup.c
index eef9e08ec..7587285a1 100644
--- a/lib/strdup.c
+++ b/lib/strdup.c
@@ -38,7 +38,7 @@ char *curlx_strdup(const char *str)
if(len >= ((size_t)-1) / sizeof(char))
return (char *)NULL;
- newstr = (char *) malloc((len+1)*sizeof(char));
+ newstr = malloc((len+1)*sizeof(char));
if(!newstr)
return (char *)NULL;