aboutsummaryrefslogtreecommitdiff
path: root/core/path/filepath
diff options
context:
space:
mode:
authorAndré <49562770+awwdev@users.noreply.github.com>2021-04-20 22:09:10 +0200
committerGitHub <noreply@github.com>2021-04-20 22:09:10 +0200
commit22867ec6f09c2b6500aba558ede7c7ba95ae9c3c (patch)
tree54b59c7be9efd5c1c3b5dcd4a5552e82c67d8b3a /core/path/filepath
parentd0a50ff0a3680ea0cecac4c9b166eb3007cfa41f (diff)
fix variable name in path_unix
replace the immutable variable "path" (that is a parameter) with a new variable "path_str"
Diffstat (limited to 'core/path/filepath')
-rw-r--r--core/path/filepath/path_unix.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/path/filepath/path_unix.odin b/core/path/filepath/path_unix.odin
index a1e16a3e9..165d856de 100644
--- a/core/path/filepath/path_unix.odin
+++ b/core/path/filepath/path_unix.odin
@@ -34,8 +34,8 @@ abs :: proc(path: string, allocator := context.allocator) -> (string, bool) {
defer _unix_free(path_ptr);
path_cstr := cstring(path_ptr);
- path = strings.clone(string(path_cstr), allocator);
- return path, true;
+ path_str := strings.clone(string(path_cstr), allocator);
+ return path_str, true;
}
join :: proc(elems: ..string, allocator := context.allocator) -> string {