summaryrefslogtreecommitdiff
path: root/src/tool_operate.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-08-21 23:40:12 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-08-24 16:37:09 +0200
commit4be1f8dc01013e4dee2b99026cd3b806ea7253c4 (patch)
tree230595d13f11659f57605a33ccba2c1375f7c079 /src/tool_operate.c
parent98c94596f5928840177b6bd3c7b0f0dd03a431af (diff)
downloadcurl-4be1f8dc01013e4dee2b99026cd3b806ea7253c4.tar.gz
curl: support XDG_CONFIG_HOME to find .curlrc
Added test433 to verify. Updated documentation. Reviewed-by: Jay Satiro Suggested-by: Eli Schwartz Fixes #5829 Closes #5837
Diffstat (limited to 'src/tool_operate.c')
-rw-r--r--src/tool_operate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c
index 3936315a9..1e4ed7df8 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -1696,7 +1696,7 @@ static CURLcode single_transfer(struct GlobalConfig *global,
char *home;
char *file;
result = CURLE_FAILED_INIT;
- home = homedir();
+ home = homedir(NULL);
if(home) {
file = aprintf("%s/.ssh/known_hosts", home);
if(file) {