summaryrefslogtreecommitdiff
path: root/net/xrdp-devel/files/patch-common__os_calls.c
blob: d1c16a43d7dab479565574da60db3f8201d5d43c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- common/os_calls.c.orig	2011-03-12 16:10:35.000000000 +0900
+++ common/os_calls.c	2011-03-12 16:34:05.000000000 +0900
@@ -1987,6 +1987,8 @@
 g_clearenv(void)
 {
 #if defined(_WIN32)
+#elif defined(__FreeBSD__)
+  environ[0] = NULL;
 #else
   environ = 0;
 #endif