remove unnecessary typecasting of malloc()

This commit is contained in:
Yang Tse
2008-09-06 05:29:05 +00:00
parent a622fd90b4
commit 59e378f48f
31 changed files with 68 additions and 72 deletions

View File

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