summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorIgnacio Etcheverry <ignalfonsore@gmail.com>2019-02-04 00:44:37 +0100
committerIgnacio Etcheverry <ignalfonsore@gmail.com>2019-02-04 00:44:37 +0100
commit9bd9d21358703fd9ee2ab3e0fe32b2425a1a6255 (patch)
tree9a78f340d4b4246ad8cab712a9472d67192914bf /drivers
parent919fa75803177d0dc8f03c16b6be1360140145e1 (diff)
Fix OS_Unix::set_environment
Diffstat (limited to 'drivers')
-rw-r--r--drivers/unix/os_unix.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/unix/os_unix.cpp b/drivers/unix/os_unix.cpp
index 39a8fbc153..e3e2e10e82 100644
--- a/drivers/unix/os_unix.cpp
+++ b/drivers/unix/os_unix.cpp
@@ -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 {
- 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 {