Browse Source

fix variable name in path_unix

replace the immutable variable "path" (that is a parameter) with a new variable "path_str"
André 4 years ago
parent
commit
22867ec6f0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      core/path/filepath/path_unix.odin

+ 2 - 2
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 {