mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
removed call to putenv since incorrect
This commit is contained in:
@ -103,11 +103,7 @@ bool Foam::setEnv
|
||||
const bool overwrite
|
||||
)
|
||||
{
|
||||
# ifdef linux
|
||||
return setenv(envName.c_str(), value.c_str(), overwrite) == 0;
|
||||
# else
|
||||
return putenv((char*)(envName + '=' + value.c_str()).c_str()) == 0;
|
||||
# endif
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user