Merge pull request #25593 from neikeq/whatwasithinking

Fix OS_Unix::set_environment
This commit is contained in:
Ignacio Etcheverry 2019-02-04 01:03:10 +01:00 committed by GitHub
commit 16d402147b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -471,7 +471,7 @@ String OS_Unix::get_environment(const String &p_var) const {
bool OS_Unix::set_environment(const String &p_var, const String &p_value) const { bool OS_Unix::set_environment(const String &p_var, const String &p_value) const {
return setenv(p_var.utf8().get_data(), p_var.utf8().get_data(), /* overwrite: */ true) == 0; return setenv(p_var.utf8().get_data(), p_value.utf8().get_data(), /* overwrite: */ true) == 0;
} }
int OS_Unix::get_processor_count() const { int OS_Unix::get_processor_count() const {