common: fix for clearing environment vars in BSD

ulab-next
Jay Sorg 11 years ago
parent 8f597584f2
commit aa983d2b46

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

Loading…
Cancel
Save