Extracting the CURLINFO_PRIVATE pointer makes no point since nothing set

it. This caused a segfault in some fprintf() implementations. Like on Solaris.
This commit is contained in:
Daniel Stenberg 2007-09-12 10:46:14 +00:00
parent cf613fdba4
commit 9e241864e3

View File

@ -87,11 +87,9 @@ static int loop(CURLM *cm, const char* url, const char* userpwd,
while ((msg = curl_multi_info_read(cm, &Q))) { while ((msg = curl_multi_info_read(cm, &Q))) {
if (msg->msg == CURLMSG_DONE) { if (msg->msg == CURLMSG_DONE) {
char *usedurl;
CURL *e = msg->easy_handle; CURL *e = msg->easy_handle;
curl_easy_getinfo(msg->easy_handle, CURLINFO_PRIVATE, &usedurl); fprintf(stderr, "R: %d - %s\n", (int)msg->data.result,
fprintf(stderr, "R: %d - %s <%s>\n", (int)msg->data.result, curl_easy_strerror(msg->data.result));
curl_easy_strerror(msg->data.result), usedurl);
curl_multi_remove_handle(cm, e); curl_multi_remove_handle(cm, e);
curl_easy_cleanup(e); curl_easy_cleanup(e);
} }