Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Molenkamp <github@lazydodo.com>2020-09-10 19:18:32 +0300
committerRay Molenkamp <github@lazydodo.com>2020-09-10 19:18:32 +0300
commit5af75e2333b3c568a70d8301e12716e38ae06b6c (patch)
tree0bcacd81b61a62db70b6f6f764ac1aa6e4fd5f4a /source/blender/blenlib/intern/path_util.c
parent11df9cb9fb7391825220eaa7e4975a298f339674 (diff)
Cleanup: Update doc string for BLI_getenv
The reason for this functions existence was poorly documented
Diffstat (limited to 'source/blender/blenlib/intern/path_util.c')
-rw-r--r--source/blender/blenlib/intern/path_util.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/path_util.c b/source/blender/blenlib/intern/path_util.c
index cde4394a8c3..01bd0329f58 100644
--- a/source/blender/blenlib/intern/path_util.c
+++ b/source/blender/blenlib/intern/path_util.c
@@ -1299,6 +1299,11 @@ void BLI_setenv_if_new(const char *env, const char *val)
/**
* Get an env var, result has to be used immediately.
+ *
+ * On windows getenv gets its variables from a static copy of the enviroment variables taken at
+ * process startup, causing it to not pick up on evenironment variables created during runtime.
+ * This function uses an alternative method to get enviroment variables that does pick up on
+ * runtime environment variables.
*/
const char *BLI_getenv(const char *env)
{