diff options
author | Jay Satiro <raysatiro@yahoo.com> | 2020-01-29 03:23:55 -0500 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2020-02-12 18:37:31 -0500 |
commit | 9dc350b60c1345aea548847de414c55468a4d123 (patch) | |
tree | 0f2b5f439f83ab148dcb158e2d63342d752a8658 /docs/README.netware | |
parent | 39d5621cbd81ff456d295af7c648a31215958c93 (diff) |
tool_homedir: Change GetEnv() to use libcurl's curl_getenv()
- Deduplicate GetEnv() code.
- On Windows change ultimate call to use Windows API
GetEnvironmentVariable() instead of C runtime getenv().
Prior to this change both libcurl and the tool had their own GetEnv
which over time diverged. Now the tool's GetEnv is a wrapper around
curl_getenv (libcurl API function which is itself a wrapper around
libcurl's GetEnv).
Furthermore this change fixes a bug in that Windows API
GetEnvironmentVariable() is called instead of C runtime getenv() to get
the environment variable since some changes aren't always visible to the
latter.
Reported-by: Christoph M. Becker
Fixes https://github.com/curl/curl/issues/4774
Closes https://github.com/curl/curl/pull/4863
Diffstat (limited to 'docs/README.netware')
0 files changed, 0 insertions, 0 deletions