From aa983d2b460ea3bc4d3b4483a53c1b13b155d4ef Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Thu, 17 Apr 2014 21:40:30 -0700 Subject: [PATCH] common: fix for clearing environment vars in BSD --- common/os_calls.c | 4 ++++ 1 file changed, 4 insertions(+) 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 } /*****************************************************************************/