From 9bd9d21358703fd9ee2ab3e0fe32b2425a1a6255 Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Mon, 4 Feb 2019 00:44:37 +0100 Subject: Fix OS_Unix::set_environment --- drivers/unix/os_unix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers') 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 { -- cgit v1.2.3