diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-01-16 10:59:53 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-01-16 10:59:53 +0000 |
commit | 4527995e660c91f89e0a051daf58a0d6f261f59c (patch) | |
tree | b8467f19a81978c6e727cd194324b99f0d5945e8 /lib | |
parent | b0fbb98f41ee857ffdc14d107d3863a5d938276c (diff) |
Allow CURLINFO_PRIVATE to be NULL, patch by Markus Oberhumer
Diffstat (limited to 'lib')
-rw-r--r-- | lib/getinfo.c | 2 |
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; |