Allow CURLINFO_PRIVATE to be NULL, patch by Markus Oberhumer
authorDaniel Stenberg <daniel@haxx.se>
Thu, 16 Jan 2003 10:59:53 +0000 (10:59 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 16 Jan 2003 10:59:53 +0000 (10:59 +0000)
lib/getinfo.c

index 009a3c1..1fa12f8 100644 (file)
@@ -159,7 +159,7 @@ CURLcode Curl_getinfo(struct SessionHandle *data, CURLINFO info, ...)
     *param_charp = data->info.contenttype;
     break;
   case CURLINFO_PRIVATE:
-    *param_charp = data->set.private?data->set.private:(char *)"";
+    *param_charp = data->set.private;
     break;
   default:
     return CURLE_BAD_FUNCTION_ARGUMENT;