aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/os/os_linux.odin6
-rw-r--r--core/os/os_osx.odin6
2 files changed, 6 insertions, 6 deletions
diff --git a/core/os/os_linux.odin b/core/os/os_linux.odin
index 1587e2ad1..13eab5def 100644
--- a/core/os/os_linux.odin
+++ b/core/os/os_linux.odin
@@ -392,9 +392,9 @@ dlerror :: proc() -> string {
_alloc_command_line_arguments :: proc() -> []string {
- args := make([]string, len(runtime.args__));
+ res := make([]string, len(runtime.args__));
for arg, i in runtime.args__ {
- args[i] = string(arg);
+ res[i] = string(arg);
}
- return args;
+ return res;
}
diff --git a/core/os/os_osx.odin b/core/os/os_osx.odin
index 302cba76a..3185fecc6 100644
--- a/core/os/os_osx.odin
+++ b/core/os/os_osx.odin
@@ -287,9 +287,9 @@ dlerror :: proc() -> string {
_alloc_command_line_arguments :: proc() -> []string {
- args := make([]string, len(runtime.args__));
+ res := make([]string, len(runtime.args__));
for arg, i in runtime.args__ {
- args[i] = string(arg);
+ res[i] = string(arg);
}
- return args;
+ return res;
}