mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-18 20:40:28 +00:00
fix variable name in path_unix
replace the immutable variable "path" (that is a parameter) with a new variable "path_str"
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user