common: fix for clearing environment vars in BSD

This commit is contained in:
Jay Sorg 2014-04-17 21:40:30 -07:00
parent 8f597584f2
commit aa983d2b46
1 changed files with 4 additions and 0 deletions

View File

@ -2906,9 +2906,13 @@ void APP_CC
g_clearenv(void) g_clearenv(void)
{ {
#if defined(_WIN32) #if defined(_WIN32)
#else
#if defined(BSD)
environ[0] = 0;
#else #else
environ = 0; environ = 0;
#endif #endif
#endif
} }
/*****************************************************************************/ /*****************************************************************************/