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:
Vadim Zeitlin
2007-08-07 22:39:29 +00:00
parent a1353ea496
commit 65fd2fc261

View File

@@ -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