common: fix for clearing environment vars in BSD
This commit is contained in:
parent
27b7541044
commit
f85dc68c5d
@ -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
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
Loading…
Reference in New Issue
Block a user