From: Daniel Stenberg Date: Wed, 12 Sep 2007 10:46:14 +0000 (+0000) Subject: Extracting the CURLINFO_PRIVATE pointer makes no point since nothing set X-Git-Tag: curl-7_17_0~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e241864e3e7ffdd2b58f1fd7da87e25c5d57348;p=curl Extracting the CURLINFO_PRIVATE pointer makes no point since nothing set it. This caused a segfault in some fprintf() implementations. Like on Solaris. --- diff --git a/tests/libtest/lib540.c b/tests/libtest/lib540.c index 518afecd6..c5c48c471 100644 --- a/tests/libtest/lib540.c +++ b/tests/libtest/lib540.c @@ -87,11 +87,9 @@ static int loop(CURLM *cm, const char* url, const char* userpwd, while ((msg = curl_multi_info_read(cm, &Q))) { if (msg->msg == CURLMSG_DONE) { - char *usedurl; CURL *e = msg->easy_handle; - curl_easy_getinfo(msg->easy_handle, CURLINFO_PRIVATE, &usedurl); - fprintf(stderr, "R: %d - %s <%s>\n", (int)msg->data.result, - curl_easy_strerror(msg->data.result), usedurl); + fprintf(stderr, "R: %d - %s\n", (int)msg->data.result, + curl_easy_strerror(msg->data.result)); curl_multi_remove_handle(cm, e); curl_easy_cleanup(e); }