Add temp allocator guard; clean up indentation

This commit is contained in:
gingerBill
2023-02-28 12:38:36 +00:00
parent ecf65303cd
commit 5b5154eda0
+1
View File
@@ -334,6 +334,7 @@ fork :: proc() -> (Pid, Errno) {
} }
execvp :: proc(path: string, args: []string) -> Errno { execvp :: proc(path: string, args: []string) -> Errno {
runtime.DEFAULT_TEMP_ALLOCATOR_TEMP_GUARD()
path_cstr := strings.clone_to_cstring(path, context.temp_allocator) path_cstr := strings.clone_to_cstring(path, context.temp_allocator)
args_cstrs := make([]cstring, len(args) + 2, context.temp_allocator) args_cstrs := make([]cstring, len(args) + 2, context.temp_allocator)