mirror of
https://github.com/curl/curl.git
synced 2026-08-25 08:13:31 +03:00
remove unnecessary typecasting of malloc()
This commit is contained in:
parent
a622fd90b4
commit
59e378f48f
31 changed files with 68 additions and 72 deletions
|
|
@ -36,8 +36,7 @@
|
|||
CURLSH *
|
||||
curl_share_init(void)
|
||||
{
|
||||
struct Curl_share *share =
|
||||
(struct Curl_share *)malloc(sizeof(struct Curl_share));
|
||||
struct Curl_share *share = malloc(sizeof(struct Curl_share));
|
||||
if(share) {
|
||||
memset (share, 0, sizeof(struct Curl_share));
|
||||
share->specifier |= (1<<CURL_LOCK_DATA_SHARE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue