correction to last commit: don't test unsetenv() return value, it's void under Darwin
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1101,7 +1101,10 @@ static bool wxDoSetEnv(const wxString& variable, const char *value)
|
||||
if ( !value )
|
||||
{
|
||||
#ifdef HAVE_UNSETENV
|
||||
return unsetenv(variable.mb_str()) == 0;
|
||||
// don't test unsetenv() return value: it's void on some systems (at
|
||||
// least Darwin)
|
||||
unsetenv(variable.mb_str());
|
||||
return;
|
||||
#else
|
||||
value = ""; // we can't pass NULL to setenv()
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user