aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/getinfo.c2
1 files changed, 1 insertions, 1 deletions
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;