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

github.com/neutrinolabs/xrdp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2014-04-18 08:40:30 +0400
committerKoichiro IWAO <meta@vmeta.jp>2014-10-24 09:49:56 +0400
commite424fb7772a3c9347016e8faf6f8351aef690a2a (patch)
tree98fe0f2a0bf7590fd810643aa6674b48e327fd8b
parent32f3f14e269276bd8bb214c0f1774a5fbcd122c6 (diff)
common: fix for clearing environment vars in BSD
Conflicts: common/os_calls.c (indent changes)
-rw-r--r--common/os_calls.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/os_calls.c b/common/os_calls.c
index 692dc015..7075ee34 100644
--- a/common/os_calls.c
+++ b/common/os_calls.c
@@ -2115,8 +2115,12 @@ g_clearenv(void)
{
#if defined(_WIN32)
#else
+#if defined(BSD)
+ environ[0] = 0;
+#else
environ = 0;
#endif
+#endif
}
/*****************************************************************************/