Explorar o código

Update core/os/os_linux.odin

Co-authored-by: Laytan <[email protected]>
Yuriy Grynevych hai 1 ano
pai
achega
cbf0471c72
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      core/os/os_linux.odin

+ 1 - 0
core/os/os_linux.odin

@@ -986,6 +986,7 @@ unset_env :: proc(key: string) -> Error {
 
 @(require_results)
 get_current_directory :: proc(allocator := context.allocator) -> string {
+	context.allocator = allocator
 	// NOTE(tetra): I would use PATH_MAX here, but I was not able to find
 	// an authoritative value for it across all systems.
 	// The largest value I could find was 4096, so might as well use the page size.