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 @@ -2114,9 +2114,13 @@ void APP_CC g_clearenv(void) { #if defined(_WIN32) +#else +#if defined(BSD) + environ[0] = 0; #else environ = 0; #endif +#endif } /*****************************************************************************/