Browse Source

Update core/os/os_darwin.odin

Co-authored-by: Laytan <[email protected]>
Yuriy Grynevych 11 months ago
parent
commit
6e979a96a1
1 changed files with 1 additions and 0 deletions
  1. 1 0
      core/os/os_darwin.odin

+ 1 - 0
core/os/os_darwin.odin

@@ -1096,6 +1096,7 @@ unset_env :: proc(key: string) -> Error {
 
 @(require_results)
 get_current_directory :: proc(allocator := context.allocator) -> string {
+	context.allocator = allocator
 	page_size := get_page_size() // NOTE(tetra): See note in os_linux.odin/get_current_directory.
 	buf := make([dynamic]u8, page_size)
 	for {