blob: f74ccade0be18ca41d6c9b7e43bf1d3c818f4faa (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
diff --git common/os_calls.c common/os_calls.c
index 692dc01..7075ee3 100644
--- common/os_calls.c
+++ 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
}
/*****************************************************************************/
|