From 9e241864e3e7ffdd2b58f1fd7da87e25c5d57348 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 12 Sep 2007 10:46:14 +0000 Subject: Extracting the CURLINFO_PRIVATE pointer makes no point since nothing set it. This caused a segfault in some fprintf() implementations. Like on Solaris. --- tests/libtest/lib540.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tests') 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); } -- cgit v1.2.3