mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08:00
asiohiper.cpp: No need to initialise members of ConnInfo
...as calloc() automatically clears the area of memory with zeros.
This commit is contained in:
parent
193ba7b46e
commit
a9eadc9f91
@ -400,8 +400,6 @@ static void new_conn(char *url, GlobalInfo *g)
|
||||
CURLMcode rc;
|
||||
|
||||
conn = (ConnInfo *) calloc(1, sizeof(ConnInfo));
|
||||
memset(conn, 0, sizeof(ConnInfo));
|
||||
conn->error[0] = '\0';
|
||||
|
||||
conn->easy = curl_easy_init();
|
||||
if(!conn->easy)
|
||||
|
Loading…
Reference in New Issue
Block a user