Commit 9e241864 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Extracting the CURLINFO_PRIVATE pointer makes no point since nothing set

it. This caused a segfault in some fprintf() implementations. Like on Solaris.
parent cf613fdb
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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);
      }