From 4527995e660c91f89e0a051daf58a0d6f261f59c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 16 Jan 2003 10:59:53 +0000 Subject: Allow CURLINFO_PRIVATE to be NULL, patch by Markus Oberhumer --- lib/getinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/getinfo.c b/lib/getinfo.c index 009a3c10a..1fa12f8f9 100644 --- a/lib/getinfo.c +++ b/lib/getinfo.c @@ -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; -- cgit v1.2.3