Skip to content
Snippets Groups Projects
Commit 4527995e authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Allow CURLINFO_PRIVATE to be NULL, patch by Markus Oberhumer

parent b0fbb98f
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment