diff options
author | Steve Holme <steve_holme@hotmail.com> | 2014-12-27 11:31:43 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2014-12-27 12:01:13 +0000 |
commit | a9eadc9f91e9620cf29ec95ba255b193419aa541 (patch) | |
tree | 942747fef2d11f9b88b229f773d7cb672b3c0305 | |
parent | 193ba7b46e7fcf69bb363d8e4d1a80348a68a6ce (diff) |
asiohiper.cpp: No need to initialise members of ConnInfo
...as calloc() automatically clears the area of memory with zeros.
-rw-r--r-- | docs/examples/asiohiper.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/docs/examples/asiohiper.cpp b/docs/examples/asiohiper.cpp index c4585af70..eb5cd0386 100644 --- a/docs/examples/asiohiper.cpp +++ b/docs/examples/asiohiper.cpp @@ -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) |