diff options
author | Daniel Stenberg <daniel@haxx.se> | 2007-09-12 10:46:14 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2007-09-12 10:46:14 +0000 |
commit | 9e241864e3e7ffdd2b58f1fd7da87e25c5d57348 (patch) | |
tree | 932bd13b83db3f103620fd2f19a1106a7ba4560c /tests | |
parent | cf613fdba469912bb947074b53ef6aa12ee98ad4 (diff) |
Extracting the CURLINFO_PRIVATE pointer makes no point since nothing set
it. This caused a segfault in some fprintf() implementations. Like on Solaris.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libtest/lib540.c | 6 |
1 files changed, 2 insertions, 4 deletions
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); } |