diff --git a/common/os_calls.c b/common/os_calls.c index 80b2d235..16b89201 100644 --- a/common/os_calls.c +++ b/common/os_calls.c @@ -2906,9 +2906,13 @@ void APP_CC g_clearenv(void) { #if defined(_WIN32) +#else +#if defined(BSD) + environ[0] = 0; #else environ = 0; #endif +#endif } /*****************************************************************************/