aboutsummaryrefslogtreecommitdiff
path: root/docs/examples
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-12-27 11:31:43 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-12-27 12:01:13 +0000
commita9eadc9f91e9620cf29ec95ba255b193419aa541 (patch)
tree942747fef2d11f9b88b229f773d7cb672b3c0305 /docs/examples
parent193ba7b46e7fcf69bb363d8e4d1a80348a68a6ce (diff)
asiohiper.cpp: No need to initialise members of ConnInfo
...as calloc() automatically clears the area of memory with zeros.
Diffstat (limited to 'docs/examples')
-rw-r--r--docs/examples/asiohiper.cpp2
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)