common: fix for clearing environment vars in BSD

This commit is contained in:
Jay Sorg 2014-04-17 21:40:30 -07:00
parent 27b7541044
commit f85dc68c5d

View File

@ -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
}
/*****************************************************************************/