Extracting the CURLINFO_PRIVATE pointer makes no point since nothing set
authorDaniel Stenberg <daniel@haxx.se>
Wed, 12 Sep 2007 10:46:14 +0000 (10:46 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 12 Sep 2007 10:46:14 +0000 (10:46 +0000)
it. This caused a segfault in some fprintf() implementations. Like on Solaris.

tests/libtest/lib540.c

index 518afec..c5c48c4 100644 (file)
@@ -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);
       }