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:
André
2021-04-20 22:09:10 +02:00
committed by GitHub
parent d0a50ff0a3
commit 22867ec6f0

View File

@@ -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 {