[debian-edu-commits] debian-edu/ 02/09: common: fix for clearing environment vars in BSD

Dominik George natureshadow-guest at moszumanska.debian.org
Thu Oct 6 21:01:37 UTC 2016


This is an automated email from the git hooks/post-receive script.

natureshadow-guest pushed a commit to annotated tag v0.8.0
in repository xrdp.

commit f85dc68c5ddb7197b6b38e71fe8fe11d5ce8305e
Author: Jay Sorg <jay.sorg at gmail.com>
Date:   Thu Apr 17 21:40:30 2014 -0700

    common: fix for clearing environment vars in BSD
---
 common/os_calls.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/common/os_calls.c b/common/os_calls.c
index 80b2d23..16b8920 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
 }
 
 /*****************************************************************************/

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/pkg-team/xrdp.git



More information about the debian-edu-commits mailing list