From a9eadc9f91e9620cf29ec95ba255b193419aa541 Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sat, 27 Dec 2014 11:31:43 +0000 Subject: asiohiper.cpp: No need to initialise members of ConnInfo ...as calloc() automatically clears the area of memory with zeros. --- docs/examples/asiohiper.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'docs/examples') 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) -- cgit v1.2.3