1
0
mirror of https://github.com/moparisthebest/curl synced 2025-03-01 01:41:50 -05:00
Jay Satiro 9dc350b60c 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
2020-02-12 18:37:31 -05:00
..
2020-02-03 14:20:51 +01:00
2019-03-15 10:22:42 +01:00
2019-03-15 10:22:42 +01:00
2020-02-09 02:27:29 -05:00
2020-01-21 10:34:44 +01:00
2019-03-01 17:30:34 +01:00
2019-11-08 14:51:42 +01:00
2019-11-16 16:15:03 +01:00
2019-11-08 14:51:42 +01:00
2019-11-08 14:51:42 +01:00
2020-02-12 16:54:51 -05:00
2019-11-08 14:51:42 +01:00
2018-09-23 22:24:02 +00:00
2020-01-06 10:12:02 +01:00
2019-11-08 14:51:42 +01:00
2018-09-23 22:24:02 +00:00
2019-05-13 08:17:09 +02:00
2019-05-13 08:17:09 +02:00
2019-11-08 14:51:42 +01:00
2019-03-05 08:01:50 +01:00
2019-11-08 14:51:42 +01:00
2018-06-11 11:14:48 +02:00
2019-11-08 14:51:42 +01:00
2019-11-08 14:51:42 +01:00
2019-11-08 14:51:42 +01:00
2018-12-10 00:10:04 +01:00
2018-09-23 22:24:02 +00:00
2018-09-23 22:24:02 +00:00
2020-01-16 11:55:56 +01:00
2019-05-20 08:51:11 +02:00
2019-05-20 08:51:11 +02:00
2019-09-18 08:08:41 +02:00
2018-02-23 23:29:01 +00:00
2020-02-12 16:55:33 -05:00
2019-05-17 23:24:34 +02:00
2017-09-02 17:47:10 +01:00
2019-11-08 14:51:42 +01:00
2018-09-23 22:24:02 +00:00
2019-11-08 14:51:42 +01:00
2019-11-08 14:51:42 +01:00
2019-11-08 14:51:42 +01:00
2018-07-30 17:59:36 +02:00
2019-11-08 14:51:42 +01:00
2019-11-08 14:51:42 +01:00
2019-11-08 14:51:42 +01:00
2019-11-08 14:51:42 +01:00
2019-07-11 02:27:04 -04:00
2019-11-08 14:51:42 +01:00
2019-11-08 14:51:42 +01:00
2020-01-12 17:19:12 +01:00