diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-08-21 23:40:12 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-08-24 16:37:09 +0200 |
commit | 4be1f8dc01013e4dee2b99026cd3b806ea7253c4 (patch) | |
tree | 230595d13f11659f57605a33ccba2c1375f7c079 /src/tool_operate.c | |
parent | 98c94596f5928840177b6bd3c7b0f0dd03a431af (diff) | |
download | curl-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.c | 2 |
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) { |