mirror of
https://github.com/curl/curl.git
synced 2025-01-30 14:22:33 +08:00
Allow CURLINFO_PRIVATE to be NULL, patch by Markus Oberhumer
This commit is contained in:
parent
b0fbb98f41
commit
4527995e66
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user