Allow CURLINFO_PRIVATE to be NULL, patch by Markus Oberhumer

This commit is contained in:
Daniel Stenberg 2003-01-16 10:59:53 +00:00
parent b0fbb98f41
commit 4527995e66

View 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;