From: Daniel Stenberg Date: Tue, 22 Aug 2006 06:29:21 +0000 (+0000) Subject: as Jeff Pohlmeyer pointed out, first get the multi handle _then_ use it X-Git-Tag: curl-7_15_6-prepipeline~36 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bac66ec26ba60e371afd811214f5462ff7402789;p=thirdparty%2Fcurl.git as Jeff Pohlmeyer pointed out, first get the multi handle _then_ use it --- diff --git a/hiper/hipev.c b/hiper/hipev.c index 050d7333d4..6087f5b7da 100644 --- a/hiper/hipev.c +++ b/hiper/hipev.c @@ -330,12 +330,12 @@ int main(int argc, char **argv) printf("About to do %d connections\n", num_total); - /* initialize the timeout event */ - evtimer_set(&timerevent, timercallback, multi_handle); - /* init the multi stack */ multi_handle = curl_multi_init(); + /* initialize the timeout event */ + evtimer_set(&timerevent, timercallback, multi_handle); + for(i=0; i< num_total; i++) { CURL *e;