diff options
author | daan <daanl@outlook.com> | 2019-07-22 10:10:45 -0700 |
---|---|---|
committer | daan <daanl@outlook.com> | 2019-07-23 15:00:13 -0700 |
commit | 0b4d74a5668b2869701a66a398f27d9bf13d163f (patch) | |
tree | f1f765ccca9c2ae300b0f2614049deb68bc43f8c /src/alloc-posix.c | |
parent | 219d46ff0c38e83a0153876fe19ae8dbf994dfdc (diff) |
merge
Diffstat (limited to 'src/alloc-posix.c')
-rw-r--r-- | src/alloc-posix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/alloc-posix.c b/src/alloc-posix.c index 4e844ba..1f55b3a 100644 --- a/src/alloc-posix.c +++ b/src/alloc-posix.c @@ -19,6 +19,7 @@ terms of the MIT license. A copy of the license can be found in the file #include <errno.h> #include <string.h> // memcpy +#include <stdlib.h> // getenv #ifndef EINVAL #define EINVAL 22 @@ -115,7 +116,7 @@ int mi_dupenv_s(char** buf, size_t* size, const char* name) mi_attr_noexcept { #pragma warning(suppress:4996) char* p = getenv(name); if (p==NULL) { - *buf = NULL; + *buf = NULL; } else { *buf = mi_strdup(p); @@ -146,4 +147,3 @@ int mi_wdupenv_s(unsigned short** buf, size_t* size, const unsigned short* name) return 0; #endif } - |