diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2014-04-17 21:40:30 -0700 |
---|---|---|
committer | Jay Sorg <jay.sorg@gmail.com> | 2014-04-17 21:40:30 -0700 |
commit | aa983d2b460ea3bc4d3b4483a53c1b13b155d4ef (patch) | |
tree | 21abb27450d6c5611a04216e8a73cd4a4535c7a6 | |
parent | 8f597584f2a176ee5d79b9ebee351120e8e2a14d (diff) | |
download | xrdp-proprietary-aa983d2b460ea3bc4d3b4483a53c1b13b155d4ef.tar.gz xrdp-proprietary-aa983d2b460ea3bc4d3b4483a53c1b13b155d4ef.zip |
common: fix for clearing environment vars in BSD
-rw-r--r-- | common/os_calls.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/os_calls.c b/common/os_calls.c index 80b2d235..16b89201 100644 --- a/common/os_calls.c +++ b/common/os_calls.c @@ -2907,8 +2907,12 @@ g_clearenv(void) { #if defined(_WIN32) #else +#if defined(BSD) + environ[0] = 0; +#else environ = 0; #endif +#endif } /*****************************************************************************/ |